Back to Numerical Arrays (NumPy)
np.polyval
Evaluate polynomial at x using Horner's method.
Syntax
np.polyval(x, c)
Description
Evaluate polynomial at x using Horner's method.
Parameters
| Name | Description |
|---|---|
| x | - Point at which to evaluate |
| c | - Coefficient array [c0, c1, c2, ...] for c0 + c1*x + c2*x^2 + ... |
Returns
number