math
This library is an interface to the standard C math library, providing all of its functions inside the math table.
Summary
Functions
Returns the absolute value of x.
Returns the arc cosine of x.
Returns the arc sine of x.
Returns the arc tangent of x in radians.
Returns the arc tangent of y/x (in radians) while using the signs of both parameters to find the quadrant of the result.
Returns the smallest integer larger than or equal to x.
Returns a number between min and max, inclusive.
Returns the cosine of x, assumed to be in radians.
Returns the hyperbolic cosine of x.
Returns the angle x (given in radians) in degrees.
Returns the value e^x.
Returns the largest integer smaller than or equal to x.
Returns the remainder of the division of x by y that rounds the quotient towards zero.
Returns m and e such that x = m*2^e.
Returns x*2^e (e should be an integer).
Returns the linear interpolation between a and b.
Returns the logarithm of x using the given base.
Returns the base-10 logarithm of x.
Returns the value of x mapped from one range to another.
Returns the maximum value among the numbers passed to the function.
Returns the minimum value among the numbers passed to the function.
Returns two numbers: the integral part of x and the fractional part of x.
Returns a Perlin noise value.
Returns x^y.
Returns the angle x (given in degrees) in radians.
Returns a random number within the range provided.
Sets x as the seed for the pseudo-random generator.
Returns the integer with the smallest difference between it and the given number.
Returns -1 if x is less than 0, 0 if x equals 0, or 1 if x is greater than 0.
Returns the sine of x, assumed to be in radians.
Returns the hyperbolic sine of x.
Returns the square root of x.
Returns the tangent of x, assumed to be in radians.
Returns the hyperbolic tangent of x.