Polynomial.Evaluate Method

Evaluates a polynomial with the specified coefficients.

Definition

Namespace: Extreme.Mathematics.Curves
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public static double Evaluate(
	IList<double> coefficients,
	double x
)

Parameters

coefficients  IList<Double>
A list of coefficients, starting with the constant term.
x  Double
The point at which to evaluate the polynomial.

Return Value

Double
The value of the polynomial with the elements of coefficients as coefficients at the value x.

Exceptions

ArgumentNullExceptioncoefficients is null.

See Also