polynDiff(p, n)

import almafa.engine.func-1

Calucates the derivative of a polynomial.

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

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