ZROOTS Procedure
Finds the roots of the m-degree complex polynomial, using Laguerre’s method.
Usage
ZROOTS, a, roots[, polish]
Input Parameters
a—A vector containing the m + 1 coefficients of the polynomial. This 1D array may be either real or complex. If the input is of single-precision data type, the result is single-precision; if the input is double-precision, the result is double-precision.
polish—(optional) Specifies whether polishing is to be done. Set to 0 if you want to prevent polishing of the roots. If set to 1 or omitted, roots are polished.
Output Parameters
roots—The result of ZROOTS, which is set to an m-element complex vector on exit.
Keywords
None.
Discussion
ZROOTS returns the roots of the m-degree complex polynomial:
See Also
ZROOTS is based on a routine of the same name in Numerical Recipes in C: The Art of Scientific Computing, by Flannery, Press, Teukolsky, and Vetterling, Cambridge University Press, Cambridge, MA, 1988. It is used by permission.