This language gathers the language operators and the numerical functions (maths, measures, ...) necessary to express formulas and sets of equations used to valuate parameters provided in the Knowledge Advisor product.
y - 2 *sqrt(x) ==2; |
Below is the list of operators and sets of functions that belong to M-EKL.
Mathematical Functions | Operators | |
Analysis Operators | Measures | Part Measures |
Operators belonging to Knowledge products. | |
Operators and constructors belonging to non Knowledge products. |
The information provided below constitutes the ground knowledge you must know to work with M-EKL. |
A constant is an identifier for a simple value. As the name suggests, this value cannot change. The following constants are specified or recognized by CATIA when programming rules and checks. As a result, they can be used anywhere in a relation in place of the actual values.
|
|
|
|
+
Addition operator (also concatenates
strings)
-
Subtraction operator
*
Multiplication operator
/
Division operator
( ) Parentheses (used to group operands in expressions)
=
Assignment operator: Can be used with
values, enumerates, objects (object A = object B if B is a sub-type of A)
** Exponentiation operator
and Logical conjunction on two expressions
or Logical disjunction on two expressions
<> Not equal to (Applies to values and objects)
== Equal to (Applies to values and objects)
>= Greater or equal to (Applies to values only)
<= Less than or equal to (Applies to values only)
< Less than (Applies to values only)
> Greater than (Applies to values only)
Units are provided in the dictionary.
Pay attention to unit consistency.
PUnits are written with an underscore instead of the usual "/" (example N_m2 instead of N/m2).
The /* and */ comment characters are supported.
/* Set of Equations created by CRE 05/03/05 */
When working with strings:
Message("you want to insert \" in your
text.") |
Message("xx\\yy") |