Example 1.6. Consider the graph y(x) cos(x) over [0.0, 1.2]. (a) Use the nodes xo=0.0andx1=1.2 to construct linear interpolating polynomial Pi(). (b)Use the nodes xo 0.2 and x =1.0 to construct a linear approximating polynomial()
Corollary 2.2 (Trapezoidal Rule: Error Analysis). Suppose that [a, b] s subdivided into M subintervals [ak, k+1] of width h (b-a)/M.The composite trapezoidal rule