Evaluates specified expression.

Namespace:  AForge
Assembly:  AForge (in AForge.dll) Version: 2.2.5.0 (2.2.5.0)

Syntax

C#
public static double Evaluate(
	string expression,
	double[] variables
)

Parameters

expression
Type: System..::.String
Expression written in postfix polish notation.
variables
Type: array< System..::.Double >[]()[]
Variables for the expression.

Return Value

Evaluated value of the expression.

Exceptions

ExceptionCondition
System..::.ArgumentExceptionUnsupported function is used in the expression.
System..::.ArgumentExceptionIncorrect postfix polish expression.

See Also