The POLY function evaluates a polynomial function of a variable.

This routine is written in the IDL language. Its source code can be found in the file poly.pro in the lib subdirectory of the IDL distribution.

Syntax


Result = POLY(X, C)

Return Value


The result is equal to:

C0 + C1x + C2x2 + ...

Arguments


X

The variable. This value can be a scalar, vector or array.

C

The vector of polynomial coefficients. The degree of the polynomial is N_ELEMENTS(C) - 1.

Keywords


None.

Version History


Original

Introduced

See Also


FZ_ROOTS