POLY

POLY returns a floating-point value that is an approximation of a polynomial formed from an one-dimensional array expressions x. The returned value has the same attributes as the first argument.

Read syntax diagramSkip visual syntax diagramPOLY(x, y)
x
An array expression.
y
An element expression.

x must be REAL FLOAT and y is converted to the attributes of x, if necessary.

If x has lower bound 0 and upper bound n, the result is a classic polynomial of degree n in y with coefficients given by x, i.e. the result is
      x(0) + x(1)*y + x(2)*y**2 + ... + x(n)*y**n
In the general case, where x has lower bound m and upper bound n, the result is the polynomial
      x(m) + x(m+1)*y + x(m+2)*y**2 + ... + x(n)*y**(n-m)