Question: Problem 4 (Programming) [25 points] Given the Runge function: and the set of points zi =-1 + 2i/N, i =0,1, , N with N =
Problem 4 (Programming) [25 points] Given the Runge function: and the set of points zi =-1 + 2i/N, i =0,1, , N with N = 5 and N = 10. Use the given Matlab function (Lagrangelnterpolation.m) to construct the Lagrange interpolation poly- nomial and the MATLAB command spline to construct the cubic spline for f. Plot the function f, the Lagrange polynomial interpolant and the cubie spline on (-1, 1] with N-5 and N- 10. Comments on the results you obtain
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
