MATLAB Find a polynomial p of degree
MATLAB Find a polynomial p of degree <= 10 that interpolates absolute (x) on [-1,1] at 11 equally spaced points. Print the difference absolute (x) - p(x) at 41 equally spaced points. Then do the same with Chebyshev nodes. Compare. requirements: 1) code itself 2) explanation of code output, and in particular, what it demonstrates?
Solution
Find a polynomial p of degree <= 10 that interpolates absolute (x) on [-1,1] at 11 equally spaced points. Print the difference absolute (x) - p(x) at 41 equally spaced points. Then do the same with Chebyshev nodes. Compare. requirements: 1) code itself 2) explanation of code output, and in particular, what it demonstrates?
![MATLAB Find a polynomial p of degree <= 10 that interpolates absolute (x) on [-1,1] at 11 equally spaced points. Print the difference absolute (x) - p(x) at MATLAB Find a polynomial p of degree <= 10 that interpolates absolute (x) on [-1,1] at 11 equally spaced points. Print the difference absolute (x) - p(x) at](/WebImages/24/matlab-find-a-polynomial-p-of-degree-1061279-1761554453-0.webp)