Contents > 8 Defining Custom Design Metrics and Rules > 8.5 Expression Terms > 8.5.2 Metric Expressions > 8.5.2.1 Mathematical Operators and Functions

8.5.2.1 Mathematical Operators and Functions

The operators allowed in a metric expression are: The operators have the following precedence:
  1. ^ and -> (or in)
  2. the unary - and +
  3. * and /
  4. + and -
In addition, a number of math and special purpose functions are available.

Math functions

Special purpose functions Parentheses can be used as usual to override the default precedence. An example of a valid metric expression is -0.5*NumOps^2+(self->AssocCls+ln(NumOps))*NOC/(1+NOD).