IMSL C# Numerical Library

ZeroPolynomial.ComputeRoots Method (Complex[])

Computes the roots of the polynomial with Complex coefficients.

p(x) = {\rm coef}[n] \times x^n + {\rm coef}[n-1] \times x^{n-1} + \ldots + {\rm coef}[0]

public Complex[] ComputeRoots(
   Complex[] coef
);

Parameters

coef
A Complex array containing the polynomial coefficients.

Return Value

A Complex array containing the roots of the polynomial.

Exceptions

Exception TypeCondition
DidNotConvergeException is thrown if if the iteration for the zeros did not converge.

See Also

ZeroPolynomial Class | Imsl.Math Namespace | ZeroPolynomial.ComputeRoots Overload List