Matlab Database > GUIs, Graphics & Visualization > Improper Integration Demo GUI

Matlab File(s)

Title: Improper Integration Demo GUI
Author: M2-TUM
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
   Int (cos(x)/sqrt(x)) dx
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:
File Size: 8 KB
File Version: 1.0
Matlab Version: 6.5 (R13)
Date: 2003-09-11
Downloads: 4762
Download File

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