HTBasic Help
×
Menu
Index
Paderiv
Antiderivative of a polynomial.
 
Loading        LOADSUB ALL FROM "PADERIV.HTS"
or LOADSUB FROM "MATHLIB.HTS"
or LOADSUB Paderiv FROM "MATHLIB.HTS"
 
Usage                INTEGER N
REAL P(*),A(*)
CALL Paderiv(N,P(*),A(*))
 
Description                
Paderiv calculates the polynomial that is the antiderivative of that described in n and P. It returns the coefficients of the antiderivative in A.
 
The first element in the arrays P and A represents the constant term in the polynomial. In the case of A, this element is set to zero, as the constant term in an antiderivative may take any value. The second element in P and A represents the linear term; the third the quadratic term, etc. The interpretation of the elements in P and A is without regard to the OPTION BASE in effect or any lower bound specified when P and A were declared. N is the degree of the polynomial whose coefficients are in P.
 
Errors                
Paderiv causes an HTBasic error if n > 10, if P contains fewer than n + 1 elements, or if A contains fewer than n + 2 elements.
 
See Also
Pderiv, Pinteg