Answered step by step
Verified Expert Solution
Question
1 Approved Answer
. Use Lagrange Interpolating Polynomial Method and Cubic Spline Interpolation to evaluate the function f(x) at 100 equally spaced points in the interval [0,5). Use
. Use Lagrange Interpolating Polynomial Method and Cubic Spline Interpolation to evaluate the function f(x) at 100 equally spaced points in the interval [0,5). Use cubic polynomial for Lagrange's method as well. The points to be used in interpolations should include first and last point (0 and 5), other two points should be chosen such that those points would represent significant change in f(x). Show the plots for Lagrange's method, cubic spline and the given data in one graph. Discuss which method is better. Calculate the total error for both methods by using the following formula. Here y; is the given y value for xi, and f(xi)is the value of the interpolating function at point xi. It should be written using the basic formulas of Lagrange and Spline methods. In MATLAB and its derivative programs, they have ready functions. It is possible to say spline (x, y) and draw it directly with a single command. But this is not the desired solution. The prepared function should not be used. S = (vi - (xi))? i=1 0 0,5 1 1,5 2 2,5 3 3,5 4 4,5 5 Y 0 0,2474665 0,8813736 1,550158 2,0947125 2,5320681 2,893444 3,2003349 3,466711 3,7019111 3,9124228
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started