Polynomial<T> Constructor

Definition

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

Overload List

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

Polynomial<T>(IList<T>)

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

Parameters

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

Exceptions

ArgumentNullExceptioncoefficients is null.

Polynomial<T>(Int32)

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

Parameters

degree  Int32
The degree of the polynomial.

Polynomial<T>(IList<T>, Boolean)

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

Parameters

coefficients  IList<T>
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<T>(T[], Boolean)

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

Parameters

coefficients  T[]
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