Calculator Functions

The Calculator adapter supports a comprehensive set of functions. You can apply functions to scalar values, unless otherwise noted.

This page discusses:

Arithmetic Functions

The Calculator adapter supports the following arithmetic functions:

abs(x)absolute value
ceil(x)smallest integer greater than or equal to x
exp(x)E to the power
fact(i)factorial
floor(x)largest integer less than or equal to x
ln(x)natural logarithm
log10(x)log base 10
power(x, y)power
rand()random number 0..1
round(x)round to integer
sqrt(x)square root

Statistical Functions

The statistical functions take an arbitrary number of scalar arguments and return a single scalar value.

sum(x, y,...) sum
max(x, y,...) maximum
min(x, y,...) minimum
absSum(x, y,...) sum of absolute values
absMax(x, y,...) maximum absolute value
absMin(x, y,...) minimum absolute value
mean(x, y,...) mean
stdDev(x, y,...) standard deviation

Trigonometry Functions

Trigonometry functions are in radians. Use the expression degrees / 180 * pi() to convert degrees to radians. The Calculator adapter supports the following trigonometry functions:

cos(x)cosine
cot(x)cotangent
csc(x)cosecant
sec(x)secant
sin(x)sine
tan(x)tangent

Inverse Trigonometry Functions

Inverse Trigonometry functions are in radians. Use the expression degrees / 180 * pi() to convert degrees to radians. The Calculator adapter supports the following inverse trigonometry functions:

acos(x)arc cosine
acot(x)arc cotangent
acsc(x)arc cosecant
asec(x)arc secant
asin(x)arc sine
atan(x)arc tangent

Hyperbolic Functions

The Calculator adapter supports the following hyperbolic functions:

acosh(x) hyperbolic arc cosine
acoth(x) hyperbolic arc cotangent
acsch(x) hyperbolic arc cosecant
asech(x) hyperbolic arc secant
asinh(x) hyperbolic arc sine
atanh(x) hyperbolic arc tangent
cosh(x) hyperbolic cosine
coth(x) hyperbolic cotangent
csch(x) hyperbolic cosecant
sech(x) hyperbolic secant
sinh(x) hyperbolic sine
tanh(x) hyperbolic tangent