Polynomial Constructor

Definition

Namespace: Extreme.Mathematics.Curves
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23

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

ArgumentNullExceptioncoefficients 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

ArgumentNullExceptioncoefficients 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

ArgumentNullExceptioncoefficients is null.

See Also