SetVariableModelExpression Property
|
Defines the mathematical expression to calculate the variable.
Namespace:
Livit.Learn.Model.SimulatorAssembly:
Livit.Learn.Model (in Livit.Learn.Model.dll) Version: 0.0.0.0
Syntaxpublic string Expression { get; set; }
Property Value
Type:
String
Remarks
This supports all common mathematical operators (e.g., 5^3*123E-41+5/6).
Other mathematical operators (e.g., log(3)+log10(1)).
Available operators are:
- sin
- cos
- asin
- acos
- tan
- cot
- atan
- acot
- loge
- log10
- logn
- sqrt
- abs
- max(a,b)
- min(a,b)
- if(1==1,1,0) if(expression,trueValue,falseValue)
- ifless(1,2,1,0)
- ifmore(2,1,1,0)
- ifequal(1,1,1,0)
- ceiling
- floor
- pow
- exp
- round
- ceiling
- floor
- truncate
- random(min,max)
- randomInt(min,max)
See Also