Calculates the primitive function of a polynomial.
p | Polynomial to be integrated. |
n | (Optional, defaults to 1) The order of antiderivation. |
return value | Primitive function. |
p = polynForRoots([-1,1]);
P = polynInteg(p)
P.polynEval(#[-1,1])
polynDiff(P).polynEval(#[-1,1])