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?
Please provide only Matlab Code for both questions
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
