Constructs a new polynomial that has the specified
roots.
Namespace: Extreme.Mathematics.Curves
Assembly: Extreme.Numerics (Extreme.Numerics)
Syntax
| Visual Basic (Declaration) |
|---|
Public Shared Function FromRoots ( _ ParamArray roots As Double() _ ) As Polynomial |
| C# |
|---|
public static Polynomial FromRoots ( params double[] roots ) |
| C++ |
|---|
public: static Polynomial^ FromRoots ( ... array<double>^ roots ) |
Parameters
- roots ()
- A list of roots.
Return Value
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
| Exception | Condition |
|---|---|
| ArgumentNullException | roots is nullNothingnullptr. |