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.)

+       Addition     ka=exp(tvlKa+nlKa) 
–       Subtraction   deriv(a=-a*ke) 
*       Multiplication  deriv(a=-a*Cl/V) 
/       Division     deriv(a=-a*Cl/V) 
^, **   Power      V=tvV*(W/70)^dVdW*exp(nV) 
=, <-   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 bas      log10(x) 
fabs    Absolute value  fabs(x) 
?       Switch       (cond) ? actionA:actionB 


Last modified date:7/9/20
Certara USA, Inc.
Legal Notice | Contact Certara
© 2020 Certara USA, Inc. All rights reserved.