Code for Chapter 8: Polynomial and Rational Interpolation