๐Ÿƒ bertini.multiprec๏ƒ

Notes๏ƒ

Auto-generated docs๏ƒ

Multiprecision types, and functions that operate on them.

Numeric types exposed are

  • Complex (Boost.Multiprecision mpc)

  • Float (Boost.Multiprecision mpfr)

  • Int (Boost.Multiprecision mpz)

  • Rational (Boost.Multiprecision.mpq)

This namespace also includes the mathematical operators, like cos, etc.

class bertini.multiprec.Complex((object)arg1)๏ƒ
__init__( (object)self, (float)real) -> None :

Construct variable-precision complex number from a double, with 0 imaginary part. do this with caution, as 0.1 is not what you think it is โ€“ thereโ€™s noise at the end.

__init__( (object)self, (Float)real) -> None :

Construct variable-precision complex number from a variable-precision float, with 0 imaginary part

__init__( (object)self, (str)real) -> None :

Construct variable-precision complex number from a string, with 0 imaginary part

__init__( (object)self, (Float)real, (Float)imag) -> None :

Construct variable-precision complex number from a pair of variable-precision floats

__init__( (object)self, (float)real, (float)imag) -> None :

Construct variable-precision complex number from a pair of doubles. do this with caution, as 0.1 is not what you think it is โ€“ thereโ€™s noise at the end.

__init__( (object)self, (str)real, (Float)imag) -> None :

Construct variable-precision complex number from a string and a variable-precision float

__init__( (object)self, (Float)real, (str)imag) -> None :

Construct variable-precision complex number from a variable-precision float and a string

__init__( (object)self, (str)real, (str)imag) -> None :

Construct variable-precision complex number from a pair of strings. the best way to construct one and be sure you have padded with zeros to the end, in the current working precision

__init__( (object)self, (Complex)value) -> None :

Construct variable-precision complex number from another one

__init__( (object)self, (Int)real) -> None :

Construct variable-precision complex number from an arbitrary-precision integer, with 0 imaginary part

__init__( (object)self, (Int)real, (Int)imag) -> None :

Construct variable-precision complex number from a pair of arbitrary-precision integers

__init__((object)arg1) None๏ƒ
__init__( (object)self, (float)real) -> None :

Construct variable-precision complex number from a double, with 0 imaginary part. do this with caution, as 0.1 is not what you think it is โ€“ thereโ€™s noise at the end.

__init__( (object)self, (Float)real) -> None :

Construct variable-precision complex number from a variable-precision float, with 0 imaginary part

__init__( (object)self, (str)real) -> None :

Construct variable-precision complex number from a string, with 0 imaginary part

__init__( (object)self, (Float)real, (Float)imag) -> None :

Construct variable-precision complex number from a pair of variable-precision floats

__init__( (object)self, (float)real, (float)imag) -> None :

Construct variable-precision complex number from a pair of doubles. do this with caution, as 0.1 is not what you think it is โ€“ thereโ€™s noise at the end.

__init__( (object)self, (str)real, (Float)imag) -> None :

Construct variable-precision complex number from a string and a variable-precision float

__init__( (object)self, (Float)real, (str)imag) -> None :

Construct variable-precision complex number from a variable-precision float and a string

__init__( (object)self, (str)real, (str)imag) -> None :

Construct variable-precision complex number from a pair of strings. the best way to construct one and be sure you have padded with zeros to the end, in the current working precision

__init__( (object)self, (Complex)value) -> None :

Construct variable-precision complex number from another one

__init__( (object)self, (Int)real) -> None :

Construct variable-precision complex number from an arbitrary-precision integer, with 0 imaginary part

__init__( (object)self, (Int)real, (Int)imag) -> None :

Construct variable-precision complex number from a pair of arbitrary-precision integers

dtype = dtype(Complex)๏ƒ
property imag๏ƒ

the imaginary part of the complex number

property precision๏ƒ

get/set the precision of this variable-precision number, in digits. remember, the system knows not where your number came from, so upsampling will NOT add more correct digits.

property real๏ƒ

the real part of the complex number

class bertini.multiprec.Float((object)arg1) None :๏ƒ

Default Construct a variable-precision float

__init__( (object)self, (str)val) -> None :

Construct a variable-precision float from a string. The best way.

__init__( (object)self, (int)val) -> None :

Construct a variable-precision float from a regular old integer.

__init__( (object)self, (Float)val) -> None :

Construct a variable-precision float from another.

__init__( (object)self, (Int)val) -> None :

Construct an variable-precision float from an arbitrary-precision integer.

__init__((object)arg1) None :๏ƒ

Default Construct a variable-precision float

__init__( (object)self, (str)val) -> None :

Construct a variable-precision float from a string. The best way.

__init__( (object)self, (int)val) -> None :

Construct a variable-precision float from a regular old integer.

__init__( (object)self, (Float)val) -> None :

Construct a variable-precision float from another.

__init__( (object)self, (Int)val) -> None :

Construct an variable-precision float from an arbitrary-precision integer.

dtype = dtype(Float)๏ƒ
property precision๏ƒ

get/set the precision of this variable-precision number, in digits. remember, the system knows not where your number came from, so upsampling will NOT add more correct digits.

class bertini.multiprec.Int((object)arg1) None :๏ƒ

Default Construct an arbitrary-precision integer

__init__( (object)self, (int)val) -> None :

Construct an arbitrary-precision integer from an integer.

__init__( (object)self, (Int)val) -> None :

Construct an arbitrary-precision integer from another.

__init__((object)arg1) None :๏ƒ

Default Construct an arbitrary-precision integer

__init__( (object)self, (int)val) -> None :

Construct an arbitrary-precision integer from an integer.

__init__( (object)self, (Int)val) -> None :

Construct an arbitrary-precision integer from another.

class bertini.multiprec.Rational((object)arg1) None :๏ƒ

Default Construct an arbitrary-precision rational number

__init__( (object)self, (int)val) -> None :

Construct an arbitrary-precision rational number from an integer.

__init__( (object)self, (int)numerator, (int)denominator) -> None :

Construct an arbitrary-precision rational number from a pair of integers.

__init__( (object)self, (Int)val) -> None :

Construct an arbitrary-precision rational number from an arbitrary-precision integer.

__init__( (object)self, (Int)numerator, (Int)denominator) -> None :

Construct an arbitrary-precision rational number from a pair of arbitrary-precision integers.

__init__( (object)self, (Rational)val) -> None :

Construct an arbitrary-precision rational number from an arbitrary-precision integer.

__init__((object)arg1) None :๏ƒ

Default Construct an arbitrary-precision rational number

__init__( (object)self, (int)val) -> None :

Construct an arbitrary-precision rational number from an integer.

__init__( (object)self, (int)numerator, (int)denominator) -> None :

Construct an arbitrary-precision rational number from a pair of integers.

__init__( (object)self, (Int)val) -> None :

Construct an arbitrary-precision rational number from an arbitrary-precision integer.

__init__( (object)self, (Int)numerator, (Int)denominator) -> None :

Construct an arbitrary-precision rational number from a pair of arbitrary-precision integers.

__init__( (object)self, (Rational)val) -> None :

Construct an arbitrary-precision rational number from an arbitrary-precision integer.

bertini.multiprec.abs((Int)val) Int :๏ƒ

absolute value

abs( (Float)val) -> Float :

absolute value

abs( (Rational)val) -> Rational :

absolute value

abs( (Complex)arg1) -> Float :

the magnitude of a complex number

bertini.multiprec.acos((Float)val) Float :๏ƒ

arccosine

acos( (Complex)val) -> Complex :

arccosine

bertini.multiprec.acosh((Float)val) Float :๏ƒ

hyperbolic arccosine

acosh( (Complex)val) -> Complex :

hyperbolic arccosine

bertini.multiprec.arg((Complex)arg1) Float :๏ƒ

the argument, or the angle from 0. beware the branch cut.

bertini.multiprec.asin((Float)val) Float :๏ƒ

arcsine

asin( (Complex)val) -> Complex :

arcsine

bertini.multiprec.asinh((Float)val) Float :๏ƒ

hyperbolic arcsine

asinh( (Complex)val) -> Complex :

hyperbolic arcsine

bertini.multiprec.atan((Float)val) Float :๏ƒ

arctangent

atan( (Complex)val) -> Complex :

arctangent

bertini.multiprec.atanh((Float)val) Float :๏ƒ

hyperbolic arctangent

atanh( (Complex)val) -> Complex :

hyperbolic arctangent

bertini.multiprec.conj((Complex)arg1) Complex :๏ƒ

complex conjugate

bertini.multiprec.cos((Float)val) Float :๏ƒ

cosine

cos( (Complex)val) -> Complex :

cosine

bertini.multiprec.cosh((Float)val) Float :๏ƒ

hyperbolic cosine

cosh( (Complex)val) -> Complex :

hyperbolic cosine

bertini.multiprec.default_align_bytes() int๏ƒ
bertini.multiprec.default_precision() int :๏ƒ

get the default precision for variable-precision numbers. is digits, not bits.

default_precision( (int)arg1) -> None :

set the default precision for variable-precision numbers. should be a positive number. is digits, not bits.

bertini.multiprec.exp((Float)val) Float :๏ƒ

exponential, base e

exp( (Complex)val) -> Complex :

exponential, base e

bertini.multiprec.imag((Complex)val) Float :๏ƒ

get the imaginary part

bertini.multiprec.log((Float)val) Float :๏ƒ

natural log

log( (Complex)val) -> Complex :

natural log

bertini.multiprec.polar((Float)arg1, (Float)arg2) Complex :๏ƒ

construct from polar form

bertini.multiprec.precision((numpy.ndarray)arg1) int :๏ƒ

get the precision of a vector of complexes

bertini.multiprec.real((Complex)val) Float :๏ƒ

get the real part

bertini.multiprec.sin((Float)val) Float :๏ƒ

sine

sin( (Complex)val) -> Complex :

sine

bertini.multiprec.sinh((Float)val) Float :๏ƒ

hyperbolic sine

sinh( (Complex)val) -> Complex :

hyperbolic sine

bertini.multiprec.sqrt((Float)val) Float :๏ƒ

square root

sqrt( (Complex)val) -> Complex :

square root

bertini.multiprec.tan((Float)val) Float :๏ƒ

tangent

tan( (Complex)val) -> Complex :

tangent

bertini.multiprec.tanh((Float)val) Float :๏ƒ

hyperbolic tangent

tanh( (Complex)val) -> Complex :

hyperbolic tangent