Python math Functions

EditRocket provides the following information on math functions in the Python source code builder.

acos(x) - Return the arc cosine of x, in radians.

asin(x) - Return the arc sine of x, in radians.

atan(x) - Return the arc tangent of x, in radians.

atan2(y, x) - Return atan(y / x), in radians.

ceil(x) - Return the ceiling of x as a float, the smallest integer value greater than or equal to x.

cos(x) - Return the cosine of x radians.

cosh(x) - Return the hyperbolic cosine of x.

degrees(x) - Converts angle x from radians to degrees.

exp(x) - Return e**x.

fabs(x) - Return the absolute value of x.

floor(x) - Return the floor of x as a float, the largest integer value less than or equal to x.

fmod(x, y) - Return fmod(x, y), as defined by the platform C library.

frexp(x) - Return the mantissa and exponent of x as the pair (m, e).

hypot(x, y) - Return the Euclidean norm, sqrt(x*x + y*y).

ldexp(x, i) - Return x * (2**i).

log(x[, base]) - Return the logarithm of x to the given base.

log10(x) - Return the base-10 logarithm of x.

modf(x) - Return the fractional and integer parts of x.

pow(x, y) - Return x**y.

radians(x) - Converts angle x from degrees to radians.

sin(x) - Return the sine of x radians.

sinh(x) - Return the hyperbolic sine of x.

sqrt(x) - Return the square root of x.

tan(x) - Return the tangent of x radians.

tanh(x) - Return the hyperbolic tangent of x.