Rational Developer for System z
Enterprise PL/I for z/OS, Version 3.8, Language Reference Manual

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. The syntax for POLY is:

Read syntax diagramSkip visual syntax diagram>>-POLY--(--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)

Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)