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....



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.

Hint: The class TMathExpression is neither available under Delphi 5 nor under Borland C++ Builder 5. You need to use at least Delphi 6 or BCB 6.



Last Update: 2005-Mai-18