Function |
Description |
acos(x) |
Returns the arc cosine of x, in radians. |
asin(x) |
Returns the arc sine of x, in radians |
atan(x) |
Returns the arc tangent of x, in radians |
atan2(y, x) |
Returns atan(y / x), in radians |
ceil(x) |
Returns the ceiling of x as a float, the smallest integer value greater than or equal to x |
cos(x) |
Returns the cosine of x radians |
cosh(x) |
Returns the hyperbolic cosine of x |
degrees(x) |
Converts angle x from radians to degrees |
exp(x) |
Returns e**x. |
fabs(x) |
Returns the absolute value of x |
fac(x) |
Returns the factorial of x (or x!). Note: only works with positive integers |
floor(x) |
Returns the floor of x as a float, the largest integer value less than or equal to x |
hypot(x, y) |
Returns the Euclidean norm, sqrt(x*x + y*y). This is the length of the vector from the origin to point (x, y) |
ldexp(x, i) |
Returns x * (2**i) |
log(x) |
Returns the base-10 logarithm of x. |
ln(x) |
Returns the natural logarithm of x |
modf(x) |
Returns the fractional and integer parts of x. Both results carry the sign of x and are floats |
pow(x, y) |
Returns x raised to the power y |
radians(x) |
Converts angle x from degrees to radians |
sin(x) |
Returns the sine of x radians |
sinc(x) |
Returns sin(x)/x |
sinh(x) |
Returns the hyperbolic sine of x |
sqrt(x) |
Returns the square root of x. |
tan(x) |
Returns the tangent of x radians |
tanh(x) |
Returns the hyperbolic tangent of x |