Poly


The formula for the Polynomial Function, Poly(x, a0, a1, a2, a3, a4, a5, a6, a7, a8, a9) is:

y = a0 + a1*x + a2*x^2 + ... + a9*x^9

This function evaluates an nth order polynomial for the given x and polynomial coefficients. The order of the polynomial is always assumed to be 9, but you can pass fewer coefficients to the function. All higher order coefficients are set to zero.

Example:

poly(2,1,3);

Returns:

1 + 3 * 2 = 7

In a second form of the function, a dataset is expected to contain the coefficients: Poly(x, dataset)