Math Operations
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.
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.
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.
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.
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.
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.
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.
math.pow
Return the expression raised to the power of the other expression.
math.prod
Return the product of the expression and the other expressions.
math.radians
Convert degrees to radians.
math.remainder
Return the remainder of the expression divided by the other expression.
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.
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.
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.
Was this page helpful?