Lab 17 · Lecture 17 · Lagrange and Divided-Difference Interpolation
Lagrange and Divided Difference Lab
Interpolate data with any spacing, compare Lagrange with divided differences, and try inverse interpolation.
Type any x values (all different) and y values. The table shows each Lagrange basis value or each divided-difference term: use it to check your hand work.
Lagrange and divided differences
Try this
Q1 Write Lagrange's interpolation formula for three points.
.
Q2 Give one advantage of divided differences over Lagrange.
Adding a new point only adds one row to the table and one term to the formula; Lagrange must recompute every basis polynomial.
Q3 Find from : 0, 1, 3, 4 and : , , 3, 12.
, , , ; .
Q4 What is inverse interpolation?
Finding the that gives a known by interpolating as a function of (swap the columns of the table). It works when is monotonic over the data.
Q5 Why not find the coefficients by solving the Vandermonde system?
It costs and the Vandermonde matrix is badly ill-conditioned (about for 20 equally spaced points on ), so the coefficients lose all their digits.