Using format long and the user-defined function LagrangeInterp, given the data in the following…
Using format long and the user-defined function LagrangeInterp, given the data in the following table: a. Interpolate at x = 0.6 with a second-degree Lagrange polynomial using three most suitable data points.
b. Interpolate at x = 0.6 with a third-degree Lagrange polynomial using four most suitable data points.
c. Compare the results of (a) and (b).