https://github.com/cran/pracma
Tip revision: 0e3ae6b4108dcce6052c1e366d66aa83f8502596 authored by HwB on 10 January 2013, 00:00:00 UTC
version 1.3.8
version 1.3.8
Tip revision: 0e3ae6b
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 }