polynInteg(p, n)

import almafa.engine.func-1

Calculates the primitive function of a polynomial.

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

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