Functions
Conditional & aggregation
Syntax
Meaning
Example
if(cond;trueExpr;falseExpr)
Ternary: choose between two expressions
if(a>b;1;0)
max(a;b;…;y)
Maximum of arguments
max(a;b;c)
min(a;b;…;y)
Minimum of arguments
min(a;b;c)
Functions always use semicolons ; as argument separator
Powers & logs
Syntax
Meaning
exp(x;y)
Exponentiation x^y
(same as pow(x;y) or x^y)
pow(x;y)
Exponentiation x^y
log10(x)
Base-10 logarithm
log2(x)
Base-2 logarithm
logn(x)
Natural log (ln)
Rounding, absolute, roots
Syntax
Meaning
round(x;dec)
Round to dec decimals
abs(x)
Absolute value
sqrt(x)
Square root
Trigonometric
Syntax
Meaning
sin(x)
Sine
cos(x)
Cosine
tan(x)
Tangent
asin(x)
Arc-sine
acos(x)
Arc-cosine
atan(x)
Arc-tangent
sinh(x)
Hyperbolic sine
cosh(x)
Hyperbolic cosine
tanh(x)
Hyperbolic tangent
Inputs for trigonometric functions are always in radians.
Last updated
Was this helpful?