Click or drag to resize
MathExpression Class
Simple math expression parser and evaluator
Inheritance Hierarchy
SystemObject
  ABB.Robotics.MathMathExpression

Namespace:  ABB.Robotics.Math
Assembly:  ABB.Robotics.Math (in ABB.Robotics.Math.dll) Version: 7.0.8747.636
Syntax
C#
public class MathExpression

The MathExpression type exposes the following members.

Properties
  NameDescription
Public propertyErrorText
If the expression is invalid (IsValid returns false), this property may return more information why.
Public propertyExpressionString
Gets or sets the source expression string
Public propertyIsSimple
Returns True if the expression consists of a single value
Public propertyIsValid
Returns True if the expression is valid and can be evaluated
Public propertyVariableNames
Returns the names of variables used in the expression
Top
Methods
  NameDescription
Public methodEquals (Inherited from Object.)
Public methodEvaluate
Evaluates the expression
Public methodEvaluate(IDictionaryString, Double)
Evaluates the expression, using the passed in dictionary of variable values
Public methodStatic memberGetAllowedOperators
Returns the allowed operators
Public methodGetHashCode (Inherited from Object.)
Public methodGetLinearCoefficients
Returns the linear coefficients, if this expression is linear in the set of given variables. Otherwise it returns null.
Public methodGetType (Inherited from Object.)
Public methodSetVariableValue
Sets the value of a variable, which will be used the next time the expression is evaluated.
Public methodToString (Inherited from Object.)
Public methodTrySetVariableValue
Sets the value of a variable, which will be used the next time the expression is evaluated.
Top
Remarks
Literal values should be using '.' as a decimal separator.
Version Information

Supported in: 1.0
See Also