Rev 7324 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{polyroot}\title{Find Zeros of a Real or Complex Polynomial}\usage{polyroot(z)}\alias{polyroot}\arguments{\item{z}{the vector of polynomial coefficients in decreasing order.}}\description{Find zeros of a real or complex polynomial.}\details{A polynomial of degree \eqn{n - 1},\deqn{p(x) = z_1 + z_2 x + \cdots + z_n x^{n-1}}{p(x) = z1 + z2 * x + \ldots + z[n] * x^(n-1)}is given by its coefficient vector \code{z[1:n]}.\code{polyroot} returns the \eqn{n-1} complex zeros of \eqn{p(x)}using the Jenkins-Traub algorithm.}\value{A complex vector of length \eqn{n - 1}, where \eqn{n} is\code{length(z)}.}\references{Jenkins and Traub (1972)TOMS Algorithm 419.\emph{Comm. ACM}, \bold{15}, 97--99.}\seealso{\code{\link{uniroot}} for numerical root finding of arbitraryfunctions;\code{\link{complex}} and the \code{zero} example in the demosdirectory.}\examples{polyroot(c(1, 2, 1))round(polyroot(choose(8, 0:8)), 11) # guess what!for (n1 in 1:4) print(polyroot(1:n1), digits = 4)}\keyword{math}