Pderiv
Derivative of a polynomial.
|
Loading LOADSUB ALL FROM "PDERIV.HTS"
or LOADSUB FROM "MATHLIB.HTS"
or LOADSUB Pderiv FROM "MATHLIB.HTS"
Usage INTEGER N
REAL P(*),D(*)
CALL Pderiv(N,P(*),D(*))
Description
Pderiv calculates the polynomial that is the derivative of that described in P. It returns the coefficients of the derivative in D.
The first element in the arrays P and D represents the constant term in the polynomial. The second element in P and D represents the linear term; the third the quadratic term, etc. The interpretation of the elements in P and D is without regard to the OPTION BASE in effect or any lower bound specified when P and D were declared. N is the degree of the polynomial whose coefficients are in P.
Errors
Pderiv causes an HTBasic error if n > 10, if P contains fewer than n + 1 elements, or if D contains fewer than n elements.
See Also
Paderiv
|
|