polynDiff(p, n)

Calucates the derivative of a polynomial.

pThe polynomial to be differentiated.
n(Optional, defaults to 1) The order of differentiation.
return valueThe derivative.

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