Back to Polynomial Functions
chebval
Evaluate Chebyshev polynomial
Syntax
y = chebval(x, c)
Description
Evaluates a Chebyshev polynomial at point x using Clenshaw's algorithm. Coefficients: c(1)*T_0 + c(2)*T_1 + c(3)*T_2 + ...
Parameters
| Name | Description |
|---|---|
| x | Point at which to evaluate |
| c | Chebyshev coefficient array |
Returns
Polynomial value at x
Examples
Try It
>> chebval(0.5, [1 2 3])