The number π = 3.14159265358979323846264338327950288.
The number e (Euler's number) = 2.71828182845904523536028747135266250.
The smallest number that satisfies the condition: 1.0 + EPSILON != 1.0. EPSILON = 2.2204460492503131e-16.
Return the absolute value of a number.
The absolute value of x
. If x
is negative (including -0), returns -x
. Otherwise, returns x
. The result is therefore always a positive number or 0.
Return the inverse cosine (in radians) of a number.
The inverse cosine (angle in radians between 0 and π, inclusive) of x
. If x
is less than -1 or greater than 1, returns NaN
.
Return the inverse hyperbolic cosine of a number.
The inverse hyperbolic cosine of x
.
Return the inverse sine (in radians) of a number.
The inverse sine (angle in radians between -𝜋/2 and 𝜋/2, inclusive) of x
.
Return the inverse hyperbolic sine of a number.
The inverse hyperbolic sine of x
.
Return the inverse tangent (in radians) of a number.
The inverse tangent (angle in radians between -𝜋/2 and 𝜋/2, inclusive) of x
.
Return the angle in the plane (in radians) between the positive x-axis and the ray from (0, 0) to the point (x, y), for math.atan2(y, x).
The angle in radians (between -π and π, inclusive) between the positive x-axis and the ray from (0, 0) to the point (x, y).
The method returns the inverse hyperbolic tangent of a number.
The inverse hyperbolic tangent of x
.
Return the cube root of a number.
The cube root of x
.
Round up and return the smallest integer greater than or equal to a given number.
The smallest integer greater than or equal to x
. It's the same value as -math.floor(-x)
.
Return the number of leading zero bits in the 32-bit binary representation of a number.
The number of leading zero bits in the 32-bit binary representation of x
.
Return the cosine of a number in radians.
The cosine of x
, between -1 and 1, inclusive.
Return e raised to the power of a number.
A nonnegative number representing e^x
, where e
is the base of the natural logarithm.
Round down and return the largest integer less than or equal to a given number.
The largest integer smaller than or equal to x
. It's the same value as -math.ceil(-x)
.
Return true if the difference between numbers a
and b
is less than the specified parameter e
.
True if the difference between numbers a
and b
is less than the specified parameter e
. Otherwise, false.
Return the largest of two numbers given as input parameters.
The largest of the given numbers.
Return the smallest of two numbers given as input parameters.
The smallest of the given numbers.
Return the value of a base raised to a power.
A number representing base taken to the power of exponent.
Return a floating-point, pseudo-random number that's greater than or equal to 0 and less than 1, with approximately uniform distribution over that range — which you can then scale to your desired range.
A floating-point, pseudo-random number between 0 (inclusive) and 1 (exclusive).
Return 1 or -1, indicating the sign of the number passed as argument.
-1 if the number is less than 0, and 1 otherwise.
Return the sine of a number in radians.
The sine of x
, between -1 and 1, inclusive.
Return the square root of a number.
The square root of x
, a nonnegative number. If x
< 0, script will fail with an error.
Return the integer part of a number by removing any fractional digits.
The integer part of x
.