TMatrix.eigenpolyroots Method
Finds the polynomial roots using the eigenvalue method.
The algorithm searches for the roots of a polynomial by
searching for the eigenvalues of its companion matrix.
Namespace: SMath.Math.NumericAssembly: SMath.Math.Numeric (in SMath.Math.Numeric.dll) Version: 1.73.9126.0
public static bool eigenpolyroots(
double[] c,
int n,
out double[] wr,
out double[] wi
)
Public Shared Function eigenpolyroots (
c As Double(),
n As Integer,
<OutAttribute> ByRef wr As Double(),
<OutAttribute> ByRef wi As Double()
) As Boolean
public:
static bool eigenpolyroots(
array<double>^ c,
int n,
[OutAttribute] array<double>^% wr,
[OutAttribute] array<double>^% wi
)
static member eigenpolyroots :
c : float[] *
n : int *
wr : float[] byref *
wi : float[] byref -> bool
- c Double[]
-
Array of polynomial coefficients. Numbering of elements from 0 to N.
C[I] - coefficient at X^I.>
- n Int32
-
Polynomial degree. N>=1.
- wr Double[]
-
Array of real parts of polynomial roots. Numbering of elements from 1 to N.
- wi Double[]
-
An array of imaginary parts of the roots of a polynomial. The numbering of elements is from 1 to N. At the same time, complex-conjugate roots follow one another.
Boolean
True, if the eigenvalue search algorithm has converged. False, if the eigenvalue search algorithm has not converged.