Learn R Programming

pracma (version 1.5.8)

polyint: Anti-derivative of Polynomial

Description

Integrate polynomials.

Usage

polyint(p, k)

Arguments

p
polynomial p given as a vector
k
an integration constant

Value

  • a vector representing a polynomial

Details

Calculates the integral, i.e. the antiderivative, of a polynomial and adds a constant of integration k if given, else 0.

See Also

polyval, polyder

Examples

Run this code
polyint(c(1, 1, 1, 1, 1), 1)

Run the code above in your browser using DataLab