๐ 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