Polynomial.FromRoots Method

Constructs a new polynomial that has the specified roots.

Definition

Namespace: Extreme.Mathematics.Curves
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public static Polynomial FromRoots(
	params double[] roots
)

Parameters

roots  Double[]
A list of roots.

Return Value

Polynomial
A polynomial with the specified roots.

Remarks

The degree of the polynomial is equal to the number of roots. You can specify the same root multiple times.

Exceptions

ArgumentNullExceptionroots is null.

See Also