Home

MathExpression

A string that represents a math expression. The expression parser recognizes four basic token types (with their regex):

Identifiers are used to name functions and variables, which result in or represent numbers. The following functions are always available:

The property where the expression is used may provide variables. For example in TechnologyUnit::count_formula L and l may be used for the technology level.

The formula is executed following the BODMAS order (also known as PEMDAS).

Type

string