Academia.eduAcademia.edu

Comparison of Newton–Cotes and Gaussian methods of quadrature

2005, Applied Mathematics and Computation

Abstract

We compare Newton-Cotes and Gauss methods of various orders. We give two MATLAB programs that evaluates integrals numerically for given order with given number of points. We make extensive tests with various functions and intervals using same number of points for each method and compare errors.

Key takeaways

  • Two well-known methods are Newton-Cotes [1,2] and Gaussian [3] quadrature.
  • We do not use odd orders, because the error term has the same power as the preceding even order.
  • For the same definite integral, we have used an increasing number of points, and 6 methods at each number of points.
  • This induces us to test Gaussian rules for higher orders to see if the same pattern continues.
  • The case of the Gaussian quadrature with much higher orders (with thousands of points) remains to be studied.