Supported Operators

Expressions and other sub-statement entities can span multiple lines and can be separated by optional commas. The following operators are supported. (The Phoenix Modeling Language follows the C++/C syntax for function names.)

Operator

Function

+

Addition
ka=exp(tvlKa+nlKa) 

Subtraction
deriv(a=-a*ke) 

*

Multiplication
deriv(a=-a*Cl/V) 

/

Division
deriv(a=-a*Cl/V) 

^ or **

Power
V=tvV*(W/70)^dVdW*exp(nV) 

= or <-

Assignment

>=

Comparison: greater than or equal to
if(t>=Tmax) 

<=

Comparison: less than or equal to

==

Comparison: equal to
LL(y, log(y == 0 ? 1: p01:y == 1 ? p01: p12:p12: 0)) 

!=

Comparison: not equal to

>

Comparison: greater than

<

Comparison: less than

<>

Comparison: not equal

&&

Logical: and

||

Logical: or

ln, log

Natural log (log base e)
ln(x), log(x) 

log10

Log base 10
log10(x) 

fabs

Absolute value
fabs(x) 

?

Switch
(cond) ? actionA:actionB 

 


Last modified date:6/26/19
Certara USA, Inc.
Legal Notice | Contact Certara
© 2019 Certara USA, Inc. All rights reserved.