abs find the absolute value acos compute inverse cosine acosh compute inverse hyperbolic cosine asin compute inverse sine asinh compute inverse hyperbolic sine atan compute inverse tangent atanh compute inverse hyperbolic tangent ceil round up to nearest integer choose randomly pick one item from given arguments cos compute cosine cosh compute hyperbolic cosine diff compute the difference between given arguments factorial compute factorial floor round down to nearest integer log compute logarithm mean find the average of given arguments median find the median of given arguments neg negate number pow compute exponent product find the product of the given arguments quotient find the quotient of the given arguments rand generate a random number randint generate a random integer round round to the nearest integer shuffle randomly shuffle an array sin compute sine sinh compute hyperbolic sine sqrt compute square root sum find the sum of the given arguments tan compute tangent tanh compute hyperbolic tangent
Returns the absolute value. That is, if the number is negative, the positive equivalent is returned. If it is positive already, the number provided is returned.
0. number (required): the number from which to find the absolute value
number: the absolute value of the argument
abs[-42]; => 42
Computes and returns the inverse cosine of the given number. The given argument must fall between -1 and 1 (inclusive.) This function (and all the trigonometric functions) operate in radians.
0. number (required): the number from which to derive the inverse cosine
number: the inverse cosine of the given number
acos[0]; => 1.570796 acos[1]; => 0
Computes and returns the inverse hyperbolic cosine of the given number. The argument must be 1 or greater. This function (and all the trigonometric functions) operate in radians.
0. number: the number from which to derive the inverse hyperbolic cosine
number: the inverse hyperbolic cosine of the given argument
acosh[1]; => 0 acosh[2]; => 1.316958
Computes and returns the inverse sine of the given number. The given argument must fall between -1 and 1 (inclusive.) This function (and all the trigonometric functions) operate in radians.
0. number: the number from which to derive the inverse sine
number: the inverse sine of the given number
asin[0]; => 0 asin[-1]; => -1.570796
Computes and returns the inverse hyperbolic sine of the given number. This function (and all the trigonometric functions) operate in radians.
0. number: the number from which to derive the inverse hyperbolic sine
number: the inverse hyperbolic sine of the given argument
asinh[1]; => 0.881374
Computes and returns the inverse tangent of the given number. This function (and all the trigonometric functions) operate in radians.
0. number: the number from which to derive the inverse tangent
number: the inverse tangent of the given argument
atan[42]; => 1.546991
Computes and returns the inverse hyperbolic tangent of the given number. The argument must be between -1 and 1 (exclusive.) This function (and all the trigonometric functions) operate in radians.
0. number: the number from which to derive the inverse hyperbolic tangent
number: the inverse hyperbolic tangent of the given argument
atanh[0.5]; => 0.54930
Round number up to its nearest integer ceiling. If it's already an integer, the same number provided is returned.
0. number (required): the number to round up
number: the integer ceiling of the argument
ceil[7.3]; => 8
Computes and returns the cosine of the given number. This function (and all the trigonometric functions) operate in radians.
0. number (required): the number from which to derive the cosine
number: the cosine of the given number
cos[-3.14179]; => -1
Computes and returns the hyperbolic cosine of the given number. This function (and all the trigonometric functions) operate in radians.
0. number (required): the number from which to derive the hyperbolic cosine
number: the hyperbolic cosine of the given number
cosh[5]; => 74.209949
Computes the factorial of the argument. This is computed via the gamma function, thus allowing fractional numbers. The largest argument that can be provided is approximately 1754.548. Anything larger than that results in an out-of-range error.
0. positive number (required): the number from which to compute the factorial
number: the computed factorial of the argument
factorial[42]; => 1405006117752879898466906934139018484885707565301760
Removes the fractional part of the provided argument, leaving only an integer.
0. number (required): the number to find the floor of
number: the floor of the given number
floor[4.01]; => 4 floor[9.99]; => 9
With only one argument, computes the natural logarithm of the given number to base e. With two arguments, computes and returns the logarithm of the first argument (x) to the given base, calculated as log[x] / log[base].
0. number (required): the number from which to derive the logarithm
1. number (optional): the logarithm base to use in the computation
number: the computed logarithm
log[5]; => 1.609438 log[5, 10]; => 0.698970
Negates the provided argument. That is, a given negative number returns positive, and a given positive number becomes negative.
0. number (required): the number to negate
number: the negated argument
neg[42]; => -42 neg[-42]; => 42
Returns the exponent of the given base number raised to the given power. If the power is omitted, the base will be squared (power 2.)
0. number (required): the base number to raise to the given power
1. number (optional): the power to which to raise the base number
number: the exponent of the given base raised to the given power
pow[5]; => 25 pow[5, 5.5]; => 6987.71243
Generates and returns a random number, most likely fractional, between the two arguments (exclusive.) It doesn't matter which is the high bound and which is the low bound--the number generated will be between them either way. If both parameters are the same number, that number will be returned.
0. number (required): either the upper or lower bound of the number to generate
1. number (required): the other bound of the number to generate
number: a random number between the two arguments
rand[0, 100]; => 64.583948 rand[100, 0]; => 13.995845
Generates and returns a random integer between the two arguments (inclusive.) It doesn't matter which is the high bound and which is the low bound--the number generated will be between them either way. If both parameters are the same number, that number will be returned.
0. number (required): either the upper or lower bound of the integer to generate
1. number (required): the other bound of the integer to generate
number: a random integer between the two arguments
randint[0, 100]; => 57 randint[100, 0]; => 89
Rounds the given number to the nearest integer. If the number is exactly half-way between two integers, this function will round towards infinity if positive, and negative infinty if negative.
0. number: the number to round
The rounded number of the given parameter.
round[5.4]; => 5 round[5.6]; => 6
Computes and returns the sine of the given number. This function (and all the trigonometric functions) operate in radians.
0. number (required): the number from which to derive the sine
number: the sine of the given number
sin[2.5]; => 0.598472
Computes and returns the hyperbolic sine of the given number. This function (and all the trigonometric functions) operate in radians.
0. number (required): the number from which to derive the hyperbolic sine
number: the hyperbolic sine of the given number
sinh[-5]; => -74.203211
Returns the square root of the provided number.
0. number (required): the number of which to find the square root
number: the square root of the provided number
sqrt[16]; => 4 sqrt[5]; => 2.236068
Computes and returns the tangent of the given number. This function (and all the trigonometric functions) operate in radians.
0. number (required): the number from which to derive the tangent
number: the tangent of the given number
tan[1]; => 1.557408
Computes and returns the hyperbolic tangent of the given number. This function (and all the trigonometric functions) operate in radians.
0. number (required): the number from which to derive the hyperbolic tangent
number: the hyperbolic tangent of the given number
tanh[0.5]; => 0.462117