Polynomial<T>.FromRoots Method

Constructs a new polynomial that has the specified roots.

Definition

Namespace: Numerics.NET.Curves.Generic
Assembly: Numerics.NET.Generic (in Numerics.NET.Generic.dll) Version: 9.0.1
C#
public static Polynomial<T> FromRoots(
	params T[] roots
)

Parameters

roots  T[]
A list of roots.

Return Value

Polynomial<T>
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