Polynomial<T>.From Roots 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.3
C#
A polynomial with the specified roots.
Assembly: Numerics.NET.Generic (in Numerics.NET.Generic.dll) Version: 9.0.3
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
Argument | roots is null. |