IMSL C# Numerical Library

ZeroPolynomial.ComputeRoots Method (Double[])

Computes the roots of the polynomial with real coefficients.

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

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

Parameters

coef
A double array containing the polynomial coefficients.

Return Value

A Complex array containing the roots of the polynomial.

Exceptions

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

See Also

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