ln(x)
Returns the natural logarithm of x.
log2(x)
Returns the base 2 logarithm of x.
log10(x)
Returns the base 10 logarithm of x.
log(n, x)
Returns the base n logarithm of x.
abs(x)
Returns the absolute value of x.
sign(x)
Returns the sign of x. This is:
floor(x)
Returns the largest integer value less than or equal to x.
ceil(x)
Returns the smallest integer value greater than or equal to x.
round(x)
Returns the nearest integer value to x.
min(x, y)
Returns the smaller of x and y.
max(x, y)
Returns the larger of x and y.
clamp(x, min, max)
Clamps x between min and max.
lerp(x, y, t)
Linearly interpolates between x and y by t.
pow(x, y)
Returns x to the power of y (x^y).
sqrt(x)
Returns the square root of x.
cbrt(x)
Returns the cube root of x.
sin(x)
Returns the sine of x.
cos(x)
Returns the cosine of x.
tan(x)
Returns the tangent of x.
asin(x)
Returns the arcsine of x.
acos(x)
Returns the arccosine of x.
atan(x)
Returns the arctangent of x.
atan2(y, x)
Returns the arctangent of y/x.
rgb(r, g, b)
Returns a color with the given red, green, and blue components. Each component should be between 0 and 255.
hsv(h, s, v)
Returns a color with the given hue, saturation, and value. Each component should be between 0 and 255.
heat(color_min, color_max, value_max, value)
Returns a color between color_min and color_max, based on the given value and the maximum values.
bin(n, x, p)
Returns the binomial probability of exactly x successesin n trials, each with a probability p of success.
bincdf(n, x, p)
returns the binomial cumulative distribution function of x successes in n trials, each trial with probability p. This is the probability of getting x or fewer successes.
bincdfc(n, x, p)
returns the binomial cumulative distribution function of x successes in n trials, each trial with probability p. This is the probability of getting x or more successes.
binmax(n, p)
Returns the probability of the mean number of successes in n trials, each trial with probability p.
binnorm(n, x, p)
Returns a normalized value between 0 and 1 that represents the probability of x successes in n trials, each trial with probability p. Where 1 is the maximum probability, at the mean number of successes.