FunctionsMath
Math
28 Math functions in the NYXDB native function registry, with signatures, briefs, and measured medians where available.
28 functions in the math family. Each name links to its page; … marks the variadic argument list (the engine declares no named parameters). A Measured value appears only where a benchmark corpus case joins by name (server-class hardware, median).
| Function | Type | Description | Measured |
|---|---|---|---|
abs(…) → Float64 | scalar | Absolute value. | — |
cbrt(…) → Float64 | scalar | Cube root. | — |
ceil(…) → Float64 | scalar | Round up to the next integer. | — |
degrees(…) → Float64 | scalar | Convert radians to degrees. | — |
div(…) → Int64 | scalar | Integer division. | — |
e(…) → Float64 | scalar | e constant. | — |
exp(…) → Float64 | scalar | Exponential function. | — |
factorial(…) → Float64 | scalar | Factorial. | — |
floor(…) → Float64 | scalar | Round down to the previous integer. | — |
gcd(…) → Int64 | scalar | Greatest common divisor. | — |
greatest(…) → Float64 | scalar | Maximum of arguments. | — |
isfinite(…) → Bool | scalar | Test for finite floating-point values. | — |
lcm(…) → Int64 | scalar | Least common multiple. | — |
least(…) → Float64 | scalar | Minimum of arguments. | — |
ln(…) → Float64 | scalar | Natural logarithm. | — |
log(…) → Float64 | scalar | Logarithm with configurable base. | — |
log10(…) → Float64 | scalar | Base-10 logarithm. | — |
log2(…) → Float64 | scalar | Base-2 logarithm. | — |
mod(…) → Int64 | scalar | Remainder after division. | — |
pi(…) → Float64 | scalar | Pi constant. | — |
pow(…) → Float64 | scalar | Raise a number to a power. | — |
power(…) → Float64 | scalar | Exponentiation. | — |
radians(…) → Float64 | scalar | Convert degrees to radians. | — |
random(…) → Float64 | scalar | Pseudo-random number. | — |
round(…) → Float64 | scalar | Round to a given precision. | — |
sign(…) → Int64 | scalar | Sign of a number. | — |
sqrt(…) → Float64 | scalar | Square root. | — |
trunc(…) → Float64 | scalar | Truncate a number without rounding. | — |