Please focus on Problem 2 as I have completed Problem 1 already. Need help!! Ple
ID: 2252343 • Letter: P
Question
Please focus on Problem 2 as I have completed Problem 1 already.
Need help!! Please provide a step-by-step solution through the use of MALAB code along with a detailed explanation!!!! It is alright if you handwrite the step-by-step solution but I would prefer the solution to be shown in MATLAB code. This is very URGENT!!! PLEASE reply as soon as possible!! Thank you!!
Download and install the chebfun system. Use the system in problems 1 and 2 Read: Chapter 10 (we will not cover Section 10.4) and Sections 14.1-14.4 in the book by Ascher and Greif. Problem 1. Evaluate exp(-ikr) exp(sin r)dr for k=-10,-9, . . . , 10 Problem 2. Use remez to plot the best polynomial approximation of degree 30 to sin(2 on the interval [-2, 1.5]. In a separate figure, plot the errors in the best approximation and in the polynomial interpolation of same degree on Chebyshev nodes of the second kindExplanation / Answer
To Plot the best polynomial approximation use the below code:
For Error Curve