Math Functions
abs
Returns the absolute value of x.
Examples:
Supported Signatures
acos
Returns the arc cosine of x.
Examples:
Supported Signatures
asin
Returns the arc sine of x.
Examples:
Supported Signatures
atan
Returns the arc tangent of x.
Examples:
Supported Signatures
atan2
Returns the arc tangent of y / x.
Examples:
Supported Signatures
beta_cdf
Compute the Beta cdf with given a, b parameters. P(N < v; a, b). The a, b parameters must be positive real numbers and value v must be a real value. The value v must lie on the interval [0, 1].
Supported Signatures
cbrt
Returns the cube root of x.
Examples:
Supported Signatures
ceil
This is an alias for ceiling().
Examples:
Supported Signatures
ceiling
Returns x rounded up to the nearest integer.
Supported Signatures
cos
Returns the cosine of x.
Examples:
Supported Signatures
cosh
Returns the hyperbolic cosine of the given value.
Examples:
Supported Signatures
cosine_similarity
Returns the cosine similarity between the sparse vectors x and y.
Supported Signatures
degrees
Converts angle x in radians to degrees.
Examples:
Supported Signatures
e
Returns the constant Euler’s number.
Supported Signatures
exp
Returns Euler’s number raised to the power of x.
Examples:
Supported Signatures
floor
Returns x rounded down to the nearest integer.
Supported Signatures
from_base
Returns the value of string interpreted as a base-radix number.
Supported Signatures
infinity
Returns the constant representing positive infinity.
Supported Signatures
inverse_beta_cdf
Compute the inverse of the Beta cdf with given a, b parameters for the cumulative probability (p). P(N < n). The a, b parameters must be positive real values. The probability p must lie on the interval [0, 1].
Supported Signatures
inverse_normal_cdf
Compute the inverse of the Normal cdf with given mean and standard deviation (sd) for the cumulative probability (p). P(N < n). The mean must be a real value and the standard deviation must be a real and positive value. The probability p must lie on the interval (0, 1).
Supported Signatures
is_finite
Determine if x is finite.
Supported Signatures
is_infinite
Determine if x is infinite.
Supported Signatures
is_nan
Determine if x
is not-a-number.
Examples:
Supported Signatures
ln
Returns the natural logarithm of x.
Examples:
Supported Signatures
log
Returns the base b logarithm of x.
Examples:
Supported Signatures
log10
Returns the base 10 logarithm of x.
Examples:
Supported Signatures
log2
Returns the base 2 logarithm of x.
Examples:
Supported Signatures
mod
Returns the modulus (remainder) of n divided by m.
Supported Signatures
nan
Returns the constant representing not-a-number.
Supported Signatures
normal_cdf
Compute the Normal cdf with given mean and standard deviation (sd). P(N < v; mean, sd). The mean and value v must be real values and the standard deviation must be a real and positive value.
Supported Signatures
pi
Returns the constant Pi.
Examples:
Supported Signatures
pow
This is an alias for power().
Supported Signatures
power
Returns x raised to the power of p.
Examples:
Supported Signatures
radians
Converts angle x in degrees to radians.
Examples:
Supported Signatures
rand
This is an alias for random().
Examples:
Supported Signatures
Note: rand() is volatile, i.e. might return a different value for the same input.
random
Returns a pseudo-random value in the range 0.0 <= x < 1.0.
Supported Signatures
Note: random() is volatile, i.e. might return a different value for the same input.
round
Returns x rounded to the nearest integer.
Examples:
Supported Signatures
sign
Returns the signum function of x, that is.
Supported Signatures
sin
Returns the sine of x.
Examples:
Supported Signatures
sinh
Returns the hyperbolic sine of x.
Examples:
Supported Signatures
sqrt
Returns the square root of x.
Examples:
Supported Signatures
tan
Returns the tangent of x.
Examples:
Supported Signatures
tanh
Returns the hyperbolic tangent of x.
Examples:
Supported Signatures
to_base
Returns the base-radix representation of x.
Supported Signatures
truncate
Returns x rounded to integer by dropping digits after decimal point.
Examples:
Supported Signatures
width_bucket
Returns the bin number of x in an equi-width histogram with the specified bound1 and bound2 bounds and n number of buckets.
Supported Signatures
wilson_interval_lower
Returns the lower bound of the Wilson score interval of a Bernoulli trial process at a confidence specified by the z-score z.
Supported Signatures
wilson_interval_upper
Returns the upper bound of the Wilson score interval of a Bernoulli trial process at a confidence specified by the z-score z.
Supported Signatures