Click or drag to resize
Accord.NET (logo)

PolishExpressionEvaluate Method

Evaluates specified expression.

Namespace:  Accord
Assembly:  Accord (in Accord.dll) Version: 3.8.0
Syntax
public static double Evaluate(
	string expression,
	double[] variables
)
Request Example View Source

Parameters

expression
Type: SystemString
Expression written in postfix polish notation.
variables
Type: SystemDouble
Variables for the expression.

Return Value

Type: Double
Evaluated value of the expression.
Exceptions
ExceptionCondition
ArgumentExceptionUnsupported function is used in the expression.
ArgumentExceptionIncorrect postfix polish expression.
See Also