Question

The following data come from a table that was measured with high precision. a) Write a MATLAB function to calculate f(4) using Newton's interpolating polynomials of order 1through 3. )

Write a MATLAB function to calculate f(4) using Lagrange polynomials of order 1 through 3.

Fig: 1

Fig: 2

Fig: 3

Fig: 4