HTBasic Help
×
Menu
Index
Poly
Evaluate a polynomial.
 
Loading        LOADSUB ALL FROM "POLY.HTS"
or LOADSUB FROM "MATHLIB.HTS"
 
Usage                INTEGER N
REAL X,Y,C(*)
Y=FNPoly(N,C(*),X)
 
Description                
FNPoly evaluates a polynomial of degree n whose coefficients are given in the elements of C at argument x. The first element in C is the constant term in the polynomial, the second element is the first-degree term (the multiplier of x), the third element is the second-degree term (the multiplier of x2), etc. C must contain at least n+1 elements; if it contains more than n+1 elements, the extra elements are ignored.
 
Errors                
FNPoly causes an HTBasic error if its arguments are not of the types listed in the USAGE section, above, or if the array C has fewer than n+1 elements.
 
See Also
Cpoly, Paderiv, Pderiv, Pinteg, Proots