polynInteg(p, n)

Calculates the primitive function of a polynomial.

pPolynomial to be integrated.
n(Optional, defaults to 1) The order of antiderivation.
return valuePrimitive function.

p = polynForRoots([-1,1]); P = polynInteg(p) P.polynEval(#[-1,1]) polynDiff(P).polynEval(#[-1,1])