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 Pharmacometrics Modeling Language follows the C++/C syntax for function names.)

Table 12: Operators

Operator

Function

Example

+

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 base 10

log10(x)

fabs

Absolute value

fabs(x)

?

Switch

(cond) ? actionA:actionB



Legal Notice | Contact Certara
© Certara USA, Inc. All rights reserved.