https://github.com/cran/pracma
Raw File
Tip revision: c79a04b5074656b36e591191eb8137b70a349932 authored by Hans W. Borchers on 30 June 2014, 00:00:00 UTC
version 1.7.0
Tip revision: c79a04b
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 }
back to top