The document lists various floating point manipulation functions, including operations for magnitude, checking values, and performing mathematical calculations. It details functions such as copysign, frexp, isclose, isfinite, and several logarithmic and exponential functions. Each function is briefly described alongside its purpose in floating-point arithmetic.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
10 views1 page
Public Documents 8
The document lists various floating point manipulation functions, including operations for magnitude, checking values, and performing mathematical calculations. It details functions such as copysign, frexp, isclose, isfinite, and several logarithmic and exponential functions. Each function is briefly described alongside its purpose in floating-point arithmetic.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1
Floating point manipulation functions
Magnitude (absolute value) of x with the sign
copysign(x, y) of y frexp(x) Mantissa and exponent of x Check if the values a and b are close to each isclose(a, b, rel_tol, abs_tol) other isfinite(x) Check if x is neither an infinity nor a NaN isinf(x) Check if x is a positive or negative infinity isnan(x) Check if x is a NaN (not a number) ldexp(x, i) x * (2**i), inverse of function frexp()
Floating-point value steps steps
nextafter(x, y, steps) after x towards y ulp(x) Value of the least significant bit of x Power, exponential and logarithmic functions cbrt(x) Cube root of x exp(x) e raised to the power x exp2(x) 2 raised to the power x expm1(x) e raised to the power x, minus 1 log(x, base) Logarithm of x to the given base (e by default) log1p(x) Natural logarithm of 1+x (base e) log2(x) Base-2 logarithm of x log10(x) Base-10 logarithm of x pow(x, y) x raised to the power y sqrt(x) Square root of x