Skip to main content

math.acos

Return the arc cosine of the expression.

math.acosh

Return the inverse hyperbolic cosine of the expression.

math.asin

Return the arc sine of the expression.

math.asinh

Return the inverse hyperbolic sine of the expression.

math.atan

Return the arc tangent of the expression.

math.atan2

Return the two-argument arc tangent of the expression.
other
NumericValue
required

math.atanh

Return the inverse hyperbolic tangent of the expression.

math.cbrt

Return the cube root of the expression.

math.ceil

Return the smallest integer value not less than the expression.

math.copysign

Return the expression with the sign of the other expression.
other
NumericValue
required

math.cos

Return the cosine of the expression.

math.cosh

Return the hyperbolic cosine of the expression.

math.cot

Return the cotangent of the expression.

math.degrees

Convert radians to degrees.

math.dist

Return the distance between the expression and the other expression.
other
NumericValue
required
type_
Literal['Euclidian', 'Manhattan', 'Cosine']
required

math.exp

Return the expression raised to the power of e.

math.exp2

Return 2 raised to the power of the expression.

math.expm1

Return e raised to the power of the expression minus 1.

math.fabs

Return the absolute value of the expression.

math.floor

Return the largest integer value not greater than the expression.

math.isclose

Return True if the values are close to each other and False otherwise.
other
NumericValue
required
rel_tol
float
default:"1e-09"
abs_tol
float

math.isqrt

Return the integer square root of the expression.

math.ldexp

Return the expression multiplied by 2 to the power of the other expression.
other
NumericValue
required

math.log

Return the logarithm of the expression. If base is specified, then the logarithm will be taken to that base. Otherwise, the natural logarithm is taken.
base
NumericValue | None

math.log10

Return the base-10 logarithm of the expression.

math.log2

Return the base-2 logarithm of the expression.

math.modf

Return the fractional and integer parts of the expression.

math.norm

Return the L2 norm of the expression.
type_
Literal['L1', 'L2']
default:"L2"

math.pow

Return the expression raised to the power of the other expression.
other
NumericValue
required

math.prod

Return the product of the expression and the other expressions.
args
NumericValue
required

math.radians

Convert degrees to radians.

math.remainder

Return the remainder of the expression divided by the other expression.
other
int | IntegerValue
required

math.round

Round the expression to the specified number of decimal places. If digits is not specified, then the expression is rounded to the nearest integer.
digits
int | IntegerValue | None

math.sign

Return the sign of the expression.

math.sin

Return the sine of the expression.

math.sinh

Return the hyperbolic sine of the expression.

math.sqrt

Return the square root of the expression.

math.sumprod

Return the sum of the product of the expression and the other expression.
other
NumericValue
required

math.tan

Return the tangent of the expression.

math.tanh

Return the hyperbolic tangent of the expression.

math.trunc

Return the truncated value of the expression.
I