Paderivcalculates the polynomial that is the antiderivative of that described innandP. It returns the coefficients of the antiderivative inA.
The first element in the arraysPandArepresents the constant term in the polynomial. In the case ofA, this element is set to zero, as the constant term in an antiderivative may take any value. The second element inPandArepresents the linear term; the third the quadratic term, etc. The interpretation of the elements inPandAis without regard to the OPTION BASE in effect or any lower bound specified whenPandAwere declared.Nis the degree of the polynomial whose coefficients are inP.
Errors
Paderivcauses an HTBasic error ifn> 10, ifPcontains fewer thann+ 1 elements, or ifAcontains fewer thann+ 2 elements.