2. Lagrange Approximation
Consider the graph y = f (x) =cos(x) over [0.0, 1.2].
(a) Use the nodes x0 = 0.0 and x1 = 1.2 to construct a linear interpolation polynomial P1(x).
(b) Use the nodes x0 = 0.2 and x1 = 1.0 to construct a linear approximating polynomial Q1(x).