Pderivcalculates the polynomial that is the derivative of that described inP. It returns the coefficients of the derivative inD.
The first element in the arraysPandDrepresents the constant term in the polynomial. The second element inPandDrepresents the linear term; the third the quadratic term, etc. The interpretation of the elements inPandDis without regard to the OPTION BASE in effect or any lower bound specified whenPandDwere declared.Nis the degree of the polynomial whose coefficients are inP.
Errors
Pderivcauses an HTBasic error ifn> 10, ifPcontains fewer thann+ 1 elements, or ifDcontains fewer thannelements.