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.

Definition

Namespace: SMath.Math.Numeric
Assembly: SMath.Math.Numeric (in SMath.Math.Numeric.dll) Version: 1.73.9126.0
C#
public static bool eigenpolyroots(
	double[] c,
	int n,
	out double[] wr,
	out double[] wi
)

Parameters

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.

Return Value

Boolean
True, if the eigenvalue search algorithm has converged. False, if the eigenvalue search algorithm has not converged.

See Also