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 37 38
|
\name{plot.polynomial}
\alias{plot.polynomial}
\title{Plot Method for Polynomials}
\description{
Plots polynomials, optionally allowing the ``interesting'' region to
be automatically determined.
}
\usage{
\method{plot}{polynomial}(x, xlim = 0:1, ylim = range(Px), type = "l",
len = 1000, \dots, xlab = "x", ylab = "P(x)")
}
\arguments{
\item{x}{an object of class \code{"polynomial"}.}
\item{xlim}{the range to be encompassed by the x axis.}
\item{ylim}{the range to be encompassed by the y axis.}
\item{type}{as for \code{\link{plot}()}.}
\item{len}{number of x points drawn.}
\item{\dots}{additional arguments as for \code{\link{plot}}.}
\item{xlab,ylab}{graphical parameters.}
}
\details{
This is a method for the generic function \code{\link{plot}}.
A plot of the polynomial is produced on the currently active device.
Unless otherwise specified, the domain is chosen to enclose the real
parts of all zeros, stationary points and zero itself.
}
\seealso{
\code{\link{plot}},
\code{\link{lines}},
\code{\link{points}},
\code{\link{lines.polynomial}},
\code{\link{points.polynomial}}.
}
\examples{
plot(p <- poly.calc(-1:5))
}
\keyword{symbolmath}
|