Polynomial Constructor

Definition

Namespace: Numerics.NET.Curves
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2

Overload List

Polynomial(IList<Double>) Constructs a new polynomial with the specified coefficients.
Polynomial(Int32) Constructs a new polynomial of the specified degree.
Polynomial(Double[], Boolean) Constructs a new polynomial with the specified coefficients.
Polynomial(IList<Double>, Boolean) Constructs a new polynomial with the specified coefficients.

Polynomial(IList<Double>)

Constructs a new polynomial with the specified coefficients.
C#
public Polynomial(
	IList<double> coefficients
)

Parameters

coefficients  IList<Double>
A vector containing the coefficients. The index into the array corresponds to the degree of the coefficient.

Exceptions

ArgumentNullException

coefficients is null.

Polynomial(Int32)

Constructs a new polynomial of the specified degree.
C#
public Polynomial(
	int degree
)

Parameters

degree  Int32
The degree of the polynomial.

Polynomial(Double[], Boolean)

Constructs a new polynomial with the specified coefficients.
C#
public Polynomial(
	double[] coefficients,
	bool descendingOrder
)

Parameters

coefficients  Double[]
A list of real numbers containing the coefficients. The index into the array corresponds to the degree of the coefficient.
descendingOrder  Boolean
Specifies whether the coefficients are listed in descending order, with the coefficient of highest degree having index 0.

Exceptions

ArgumentNullException

coefficients is null.

Polynomial(IList<Double>, Boolean)

Constructs a new polynomial with the specified coefficients.
C#
public Polynomial(
	IList<double> coefficients,
	bool descendingOrder
)

Parameters

coefficients  IList<Double>
A list of real numbers containing the coefficients. The index into the array corresponds to the degree of the coefficient.
descendingOrder  Boolean
Specifies whether the coefficients are listed in descending order, with the coefficient of highest degree having index 0.

Exceptions

ArgumentNullException

coefficients is null.

See Also