Using the user-defined function LagrangeInterp, given the data in the following table: a….
Using the user-defined function LagrangeInterp, given the data in the following table:
a. Interpolate at x = 1.5 with a second-degree Lagrange polynomial using three most suitable data points.
b. Interpolate at x = 3 with a third-degree Lagrange polynomial using four most suitable data points.