|
Syntax of expressions |
Scroll |
When composing an expression, you can use the following elements.
•Arithmetic operators (except for the "=" operator), logical operators and functions.
•Numerical values and constants. Example of using a constant: "a - sin (b * M_PI) <= FLT_EPS ? c : d".
The full list of operators, functions, and constants see in Appendix.
•Any variables contained in the document except interval variables.
|
If a variable name that does not exist in the document is used when composing an expression, a user variable with that name is created after the expression is fixed. This variable is placed in the main section of the Variable panel. |
•Formulas, the list of which is provided in Appendix.
|
In an expression (but not in variable names and not in numbers), any number of spaces can be included. They are not taken into account when interpreting the expression. |
Examples of using expressions to obtain model variable values