module
math
Defines math utilities.
You can import these APIs from the math
package. For example:
from math import floor
Functions
-
floor
: Get the floor value of the given object. -
ceil
: Get the ceiling value of the given object. -
ceildiv
: Return the rounded-up result of dividing x by y. -
trunc
: Get the truncated value of the given object. -
sqrt
: Performs square root on an integer. -
rsqrt
: Performs elementwise reciprocal square root on the elements of a SIMD vector. -
exp2
: Computes elementwise 2 raised to the power of n, where n is an element of the input SIMD vector. -
ldexp
: Computes elementwise ldexp function. -
exp
: Calculates elementwise exponential of the input vector.