Polynomial<T>.Evaluate Method

Evaluates a polynomial with the specified coefficients.

Definition

Namespace: Numerics.NET.Curves.Generic
Assembly: Numerics.NET.Generic (in Numerics.NET.Generic.dll) Version: 9.0.0
C#
public static T Evaluate(
	IList<T> coefficients,
	T x
)

Parameters

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

Return Value

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

Exceptions

ArgumentNullExceptioncoefficients is null.

See Also