numpy.
MachAr
Diagnosing machine parameters.
Function that converts an integer or integer array to a float or float array. Default is float.
float
Function that converts a float or float array to an integer or integer array. Default is int.
int
Function that converts a float array to float. Default is float. Note that this does not seem to do anything useful in the current implementation.
Function that converts a single float to a string. Default is lambda v:'%24.16e' %v.
lambda v:'%24.16e' %v
Title that is printed in the string representation of MachAr.
See also
finfo
Machine limits for floating point types.
iinfo
Machine limits for integer types.
References
Press, Teukolsky, Vetterling and Flannery, “Numerical Recipes in C++,” 2nd ed, Cambridge University Press, 2002, p. 31.
Radix in which numbers are represented.
Number of base-ibeta digits in the floating point mantissa M.
Exponent of the smallest (most negative) power of ibeta that, added to 1.0, gives something different from 1.0
Floating-point number beta**machep (floating point precision)
beta**machep
Exponent of the smallest power of ibeta that, subtracted from 1.0, gives something different from 1.0.
Floating-point number beta**negep.
beta**negep
Number of bits in the exponent (including its sign and bias).
Smallest (most negative) power of ibeta consistent with there being no leading zeros in the mantissa.
Floating-point number beta**minexp (the smallest [in magnitude] positive floating point number with full precision).
beta**minexp
Smallest (positive) power of ibeta that causes overflow.
(1-epsneg) * beta**maxexp (the largest [in magnitude] usable floating value).
(1-epsneg) * beta**maxexp
In range(6), information on what kind of rounding is done in addition, and on how underflow is handled.
range(6)
Number of ‘guard digits’ used when truncating the product of two mantissas to fit the representation.
Same as eps.
Same as xmin.
Same as xmax.
- int(-log10(eps))
- 10**(-precision)