The mathematical constant pi.
double
The mathematical constant e, also known as Eulers number.
double
Converts a degree value to radians
(double) -> double
degrees : double | The angle in degrees |
The angle in radians
Converts a radian value to degrees
(double) -> double
radians : double | The angle in radians |
The angle in degrees
Takes the inverse cosine of the given number
(double) -> double
x : double | The value to take the acos of |
The inverse cosine value in radians
Takes the inverse sine of the given number
(double) -> double
x : double | The value to take the asin of |
The inverse sine value in radians.
Takes the inverse tangent of the given number
(double) -> double
x : double | The value to take the atan of |
The atan value, ranging in value from -pi/2 to pi/2.
Returns the arc tangent in radians of y/x based on the signs of both values to determine the correct quadrant.
(double, double) -> double
y : double | The y component |
x : double | The x component |
The atan value, ranging in value from -pi to pi.
Returns the cosine of the given value.
(double) -> double
x : double | The value to take the cosine of in radians. |
The cosine value.
Returns the hyperbolic cosine of the given value.
(double) -> double
x : double | The value to take the cosh of |
The hyperbolic cosine value.
Returns the sine of the given value.
(double) -> double
x : double | The value to take the sine of in radians |
The sine value.
Returns the hyperbolic sine of the given value.
(double) -> double
x : double | The value to take the sinh of |
The hyperbolic sine value.
Returns the tangent of the given value.
(double) -> double
x : double | The value to take the tan of in radians |
The tangent value
Returns the hyperbolic tangent of the given value.
(double) -> double
x : double | The value to take the tanh of |
The tanh value
Returns the value of e raised to the xth power.
(double) -> double
x : double | The power to raise e to |
e raised to the xth power
The returned value is the mantissa and the exponent such x = mantissa * 2 ^ exponent.
(double) -> (double, int32)
x : double | The number |
(mantissa, exponent) as a tuple
Returns x multiplied by 2 raised to the power of exponent.
(double, int16) -> double
x : double | The number to be multiplied by |
exponent : int16 | The exponent |
The value x multiplied by 2^x
The natural (base e) logarithm function.
(double) -> double
x : double | The value to take the logarithm of |
Returns the base e log of x.
The base 10 logarithm function.
(double) -> double
x : double | The value to take the logarithm of |
Returns the base 10 log of x.
The returned value is the fraction component (part after the decimal) and the integer component of the given number.
(double) -> (double, double)
x : double | The number |
(fractionComponent, integerComponent) as a tuple value.
Returns x raised to the y power.
(double, double) -> double
x : double | The base |
y : double | The exponent |
x raised to the y power
Returns the square root of x.
(double) -> double
The square root of x
Returns the smallest integer value greater than or equal to x.
(double) -> double
x : double | the number to take the ceiling of |
The ceiling of x
The absolute value function, using the C fabs function.
(double) -> double
x : double | The number to take the absolute value of |
The absoulute value of x
(t) -> t where t : num
x : t | The number to take the absolute value of |
The absolute value of x
Returns the largest integer value less than or equal to x.
(double) -> double
x : double | The number to take the floor of |
The floor of x
Returns the remainder of x divided by y.
(double, double) -> double
x : double | The dividend |
y : double | The divisor |
The remainder of x divided by y.
Rounds to the nearest integer value.
(double) -> double
x : double | The number to round |
The rounded integer value, computed using floor(x+0.5)
Returns the smaller of the two numbers.
(a, a) -> a where a : num
x : a | The first number |
y : a | The second number |
The smaller of x and y
Returns the larger of the two numbers.
(a, a) -> a where a : num
x : a | The first number |
y : a | The second number |
The larger of x and y
Linearly maps a value x from range [a1,a2] to [b1,b2]
(t, t, t, t, t) -> t where t : real
x : t | The value in range [a1,a2] |
a1 : t | The lower value of the range containing x |
a2 : t | The higher value of the range containing x |
b1 : t | The lower value of the target range |
b2 : t | The higher value of the target range |
x mapped from range [a1,a2] to [b1,b2]
Clamps a numerical value to fall in the interval [min,max]
(a, a, a) -> a where a : num
x : a | The value to clamp |
min : a | The minimum value |
max : a | The maximum value |
min if x is smaller than min, max if x is larger than max otherwise returns x.
Returns the sign of the given numerial value.
(a) -> int8 where a : num
n : a | The number to find the sign of |
0 if n is zero, 1 if n is greater than zero, otherwise -1