polyint

Integral of a polynomial.

Syntax

q = polyint(p)

q = polyint(p,k)

Inputs

p
The coefficients of the polynomial to integrate.
Dimension: vector
k
The constant of integration (default: 0).
Dimension: scalar

Outputs

q
The coefficients of the polynomial integral.

Example

y = polyint([6,6,3],1)
q = [Matrix] 1 x 5
2  3  3  1