Matlab Database > Numerical Quadrature > Improper Integration Demo GUI

Matlab File(s)

Title: Improper Integration Demo GUI
Author: M2-TUM
E-Mail: matlabdb-AT-ma.tum.de
Institution: TU Munich
Description: This GUI demonstrates the numerical intergration of an improper integral using different methods:
  • Trapezoidal Rule (not implemented here since the function f used is not defined at x=0; this serves as an example to show that closed Newton-Cotes formulas cannot be applied for the particular example).
  • Midpoint Rule, the simplest open Newton-Cotes formula.
  • Midpoint Rule with regularisation.
  • Gauss Qaudrature with special points.
The convergence plot of these methods is shown with error vs. number of function evaluations. The integral used for the comparison is
    1
   Int (cos(x)/sqrt(x)) dx
    0
Limits of integration used are from 0 to 1. Note that the integrand approaches infinity at x=0, the integral is thus improper.

After unzipping, please start the program with improper_int.

This file was written by Faisal Baig, with financial support by the Self-Study Online project of the University of Stuttgart.

Keywords: improper integral, trapezoidal, midpoint, Gauss quadrature
File Name: improper_int.zip
File Size: 8 KB
File Version: 1.0
Matlab Version: 6.5 (R13)
Date: 2003-09-11
Downloads: 4778
Download File

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