Functions
The following table lists the supported functions.
Syntax
|
Returns Unit Type
|
Expected Unit Type
|
cos(expr)
|
unitless
|
angle
|
sin(expr)
|
unitless
|
angle
|
tan(expr)
|
unitless
|
angle
|
acos(expr)
|
angle
|
unitless
|
asin(expr)
|
angle
|
unitless
|
atan(expr)
|
angle
|
unitless
|
cosh(expr)
|
unitless
|
angle
|
tanh(expr)
|
unitless
|
angle
|
acosh(expr)
|
angle
|
unitless
|
asinh(expr)
|
angle
|
unitless
|
sqrt(expr)
|
unit^1/2
|
any
|
sign(expr)
|
unitless
|
any (Return 0 if negative, 1 if positive.)
|
exp(expr)
|
unitless
|
any (Return exponential power of expression: for example, return 2 for 100, 3 for 1000, and so on.)
|
floor(expr)
|
unitless
|
unitless (Next lowest whole number.)
|
ceil(expr)
|
unitless
|
unitless (Next highest whole number.)
|
round(expr)
|
unitless
|
unitless (Closest whole number.)
|
abs(expr)
|
any
|
any
|
max(expr1;expr2)
|
any
|
any
|
min(expr1;expr2)
|
any
|
any
|
ln(expr)
|
unitless
|
unitless
|
log(expr)
|
unitless
|
unitless
|
pow(expr1;expr2)
|
unit^expr2
|
any and unitless, respectively
|
random(expr)
|
unitless
|
unitless
|
isolate(expr;unit;unit)
|
any
|
any
|