Derivative of polynomial
function derivative extends Modelica.Icons.Function; input Real p1[:] "Polynomial coefficients (p1[1] is coefficient of highest power)"; output Real p2[size(p1, 1) - 1] "Derivative of polynomial p1"; end derivative;