[ Home ] Numerical Methods. Note « 3 »

Lectures
Problems
  1. Make a detailed algorithm for an adaptive integration routine along the following lines:
    	estimate the integral and error over the given interval
    	if error is less than the accuracy goal
    		then return the integral and error
    		else divide the interval in two and recurse
    
  2. Implement adaptive integration routines with 3-point close and 4-point open formulas.
  3. Consider the accuracy parameter of your integrator. Implement both the absolute accuracy and relative accuracy parameters in your integrator. (One can use recursive functions in C and Fortran90 -- here is an example).
  4. Compare your integrator with one of the QAG* routines from the QUADPACK library. The fortran version, qag.f, is here while the c version "gsl_integration_qag" is included in GNU/GSL (here is an example).

"Copyleft" © 2001 D.V.Fedorov (fedorov@ifa.au.dk)