Answer to Question #38 in MatLAB | Mathematica | MathCAD | Maple for Shaun McKnight
Tn(x) = cos[ncos-1(x)], -1 <= x <= 1.
These satisfy To(x) = 1, T1(x) = x, and the recursion relation
Tn+1(x) = 2xTn(x) - Tn-1(x), n >= 1.
Write a function Chebeval (x,N) that evaluates all of the Chebyshev polynomials of degree less than or equal to N at all of the points in column vector x. The result should be an array of size length (x) by N+1.
Need a fast expert's response?Submit order
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!