Question: 1. a. Interpolate the function sin(x) at 5 Chebyshev points (using both Chebyshev-Gauss-Lobatto, and Chebyshev-Gauss) over the interval [0; pi/2]. Compare your results to those
1. a. Interpolate the function sin(x) at 5 Chebyshev points (using both Chebyshev-Gauss-Lobatto, and Chebyshev-Gauss) over the interval [0; pi/2]. Compare your results to those you obtained in Homework 5 (using equispaced nodes). b. Repeat (interpolate sin(x)), but this time use 5 Chebyshev points (using both Chebyshev-Gauss-Lobatto, and Chebyshev-Gauss) over the interval [0;pi ]. What can you say?
2. Interpolate the Runge function 1/(1 + 25x^2) on the interval [-1; 1] using 10, 15, 20, and 25 equidistant points and 10, 15, 20, and 25 Chebyshev points (using both Chebyshev-Gauss-Lobatto, and Chebyshev-Gauss). Graph the interpolants.
Please provide only Matlab Code
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
