Back to Polynomial Functions
polyval
Evaluate power series polynomial
Syntax
y = polyval(x, c)
Description
Evaluates a power series polynomial at point x using Horner's method. Coefficients are in ascending order: c(1) + c(2)*x + c(3)*x^2 + ...
Parameters
| Name | Description |
|---|---|
| x | Point at which to evaluate |
| c | Coefficient array in ascending order [c0, c1, c2, ...] |
Returns
Polynomial value at x