1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
\name{summary.polynomial}
\alias{summary.polynomial}
\alias{print.summary.polynomial}
\title{Summary of a Polynomial}
\description{
Summarize a polynomial by describing its ``key'' points.
}
\usage{
\method{summary}{polynomial}(object, \dots)
}
\arguments{
\item{object}{an object of class \code{"polynomial"}.}
\item{\dots}{Not used by this method.}
}
\value{
A list of class \code{"summary.polynomial"} (which has its own
\code{print} method) containing information on zeros, stationary and
inflexion points.
}
\details{
This is a method for the generic function \code{\link{summary}}.
}
\examples{
p <- polynomial(6:1)
p
## 6 + 5*x + 4*x^2 + 3*x^3 + 2*x^4 + x^5
pz <- summary(p)
pz
## [1] -1.49180+0.0000i -0.80579-1.2229i -0.80579+1.2229i
## [4] 0.55169-1.2533i 0.55169+1.2533i
## To retrieve the original polynomial from the zeros:
poly.calc(pz)
## Warning: imaginary parts discarded in coercion
## 6 + 5*x + 4*x^2 + 3*x^3 + 2*x^4 + x^5
}
\keyword{symbolmath}
|