Matlab Database > Numerical Quadrature > Quadrature Formula Comparison

Matlab File(s)

Title: Quadrature Formula Comparison
Author: Bernd Flemisch
Institution: University of Stuttgart
Description: The accumulated quadrature formulas of type open Gauss are compared with the ones of type closed Newton-Cotes.
Arbitrary functions and integration intervals can be selected. Also the maximum number of recursive subdivisions of the integration interval can be chosen freely.
The output includes:
  • table with the error for each method and each set of subintervals
  • table with the ratio of the error from one set of subintervals to the next coarser one
  • plot visualizing the error decay versus the number of function evaluations
The script file demo_gauss_newton.m illustrates the usage.
The method itself is implemented in the file gauss_newton.m.
Keywords: gauss quadrature, newton-cotes, numerical quadrature
File Name:
File Size: 3 KB
File Version: 1.0
Matlab Version: 6.1
Date: 2002-08-08
Downloads: 2785
Download File

Upload your own files today! Click here for more information.