polyint.RdIntegrate polynomials.
polyint(p, k)Calculates the integral, i.e. the antiderivative, of a polynomial
and adds a constant of integration k if given, else 0.
a vector representing a polynomial
polyint(c(1, 1, 1, 1, 1), 1)
#> [1] 0.2000000 0.2500000 0.3333333 0.5000000 1.0000000 1.0000000