https://github.com/cran/pracma
Tip revision: 63f12837f2d7d6d30cdc2b2df60efdef228d8d0f authored by HwB on 10 May 2011, 00:00:00 UTC
version 0.4-0
version 0.4-0
Tip revision: 63f1283
polyint.Rd
\name{polyint}
\alias{polyint}
\title{Anti-derivative of Polynomial}
\description{
Integrate polynomials.
}
\usage{
polyint(p, k)
}
\arguments{
\item{p}{polynomial \code{p} given as a vector}
\item{k}{an integration constant}
}
\details{
Calculates the integral, i.e. the antiderivative, of a polynomial
and adds a constant of integration \code{k} if given, else 0.
}
\value{
a vector representing a polynomial
}
\seealso{
\code{\link{polyval}}, \code{\link{polyder}}
}
\examples{
polyint(c(1, 1, 1, 1, 1), 1)
}
\keyword{ math }