FNPintegcalculates the definite integral of the real polynomial functionp(x) over the intervalx(a,b). It does this by using the polynomial antiderivative function used by thePaderivsubroutine and returning the difference of the antiderivatives at the pointsbanda.
The first element in the arrayPrepresents the constant term in the polynomial; the second element represents the linear term; the third the quadratic term, etc. The interpretation of the elements inPis without regard to the OPTION BASE in effect or any lower bound specified whenPwas declared.
Errors
Pintegcauses an HTBasic error ifn> 10 or ifPcontains fewer thann+ 1 elements.