Polynomial.Evaluate Method

Evaluates a polynomial with the specified coefficients.

Definition

Namespace: Numerics.NET.Curves
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
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

ArgumentNullException

coefficients is null.

See Also