COCO - CAPE-OPEN to CAPE-OPEN simulation environment
 Help

Expression syntax

For real values, the following expression syntax can be used. The operators are in order of precedence. Use brackets to make order of operations explicit.

operandsamplemeaning
-a - bsubtraction
+a + baddition
*a * bmultiplication
/a / bdivision
-- anegation (unary minus)
^a ^ bpower (a to the power of b)

The following values can be used:

valuedescription
PI3.1415926535897932384626433832795
Runiversal gas constant, 8.314 J/mol/K
numberany numeric value

The following functions can be used:

functionsampledescription
SQRTSQRT(a)square root
SINSIN(a)sine
COSCOS(a)cosine
TANTAN(a)tangent
SINHSINH(a)hyperbolic sine
COSHCOSH(a)hyperbolic cosine
TANHTANH(a)hyperbolic tangent
ASINASIN(a)arc sine
ACOSACOS(a)arc cosine
ATANATAN(a)arc tangent
FLOORFLOOR(a)nearest lower integer
CEILCEIL(a)nearest higher integer
ROUNDROUND(a)nearest integer
EXPEXP(a)natural exponent
LOGLOG(a)natural logarithm
LOG10LOG10(a)10 based logarithm
MINMIN(a,b)minimum of two values
MAXMAX(a,b)maximum of two values
MODMOD(a,b)modulus

All expressions are case-insensitive. In the above, a and b are arbitrary expressions.

INDEX
CONTENT