The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information.... 
Home MathPack Math2 Class TMathExpression TMathExpression  
See also: Expression, TExtractor, ME_STACKSIZE, TOperator, CheckParanthInExp, ExtractVarNames  
TMathExpression 

The class TMathExpression is a mathematical function interpreter which can be used to evaluate mathematical and/or logical terms. In order to use it, you have first to assign the term to be evaluated to the property Expression. After that you can call the method Evaluate to calculate the result of the expression. The expression may contain any number of variables. Logical and numeric expressions may be mixed where appropriate. The numerical/logical values of the variables are requested by the function evaluator by means of the OnVarRequest event. The class TMathExpression raises an ESDLMathExp exception whenever an invalid state is encountered. Besides the message of the exception its help context gives a hint on the cause of the exception:
