HTBasic Help
×
Menu
Index
Cpoly
Evaluate a polynomial.
 
Loading        LOADSUB ALL FROM "CPOLY.HTS"
or LOADSUB FROM "MATHLIB.HTS"
 
Usage                INTEGER N
COMPLEX Z,Y,C(*)
Y=FNCPoly(N,C(*),Z)
 
Description                
FNCpoly evaluates a polynomial of degree n whose coefficients are given in the elements of C at argument z. The first element in C is the constant term in the polynomial, the second element is the first-degree term (the multiplier of z^2), the third element is the second-degree term (the multiplier of z^2), etc. C must contain at least n+1 elements; if it contains more than n+1 elements, the extra elements are ignored.
 
Errors                
FNCpoly 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
Poly