commons-math-interpolation / Utils / evaluatePoly
function evaluatePoly(c, x): number;
Defined in: Utils.ts:77
Evaluates a polynomial, using Horner's method.
ArrayLike<number>
ArrayLike
number
The polynomial coefficients in ascending order, i.e. the polynomial is c[0] + c[1] * x + c[2] * x^2 + ....
c[0] + c[1] * x + c[2] * x^2 + ...
The argument value.
The value of the polynomial at x, or 0 if c is empty.
x
c
There was an error while loading. Please reload this page.