polyrt(timeslab)R Documentation

Find the Roots of a Polynomial Given its Coefficients

Description

Find the Roots of a Polynomial Given its Coefficients

Usage

polyrt(coeffs,m=100,eps=1.e-6)

Arguments

coeffs Array of length $p+1$ containing the coefficients of the polynomial of degree $p$, ({coeffs}(i) is the coefficient of power $i-1$).
m Integer containing the maximum number of iterations in the procedure.
eps Real scalar indicating the convergence criterion.

Value

polyrt returns a list containing the following items:
real Array of length $p$ containing the real parts of the roots.
imag Array of length $p$ containing the imaginary parts of the roots.
ier Integer variable indicating whether or not the procedure converged (0 means yes, 1 means no).


[Package Contents]