Evaluating the Lagrange interpolation polynomial coefficients at five, and their derivatives at one, gives
Both rules are exact for every polynomial of degree at most two. For , the first gives , while the true value is ; the second gives , while the true derivative is . Thus the respective approximation errors, estimate minus true value, are and . There is no contradiction: a cubic lies outside the exactness class. The first formula extrapolates beyond the interpolation nodes, so its error can be substantial.

Articles by others on the same topic (0)

There are currently no matching articles.