10.001 Notes on Numerical Integration
Must-read material (Adobe PDF Format):
These lecture notes may also help:
- Simple Discretization of Integrals and Derivatives
- Minimize errors by piecewise fitting: Trapezoidal Rule
- Computer implementation of Numerical Integration
- Computer implementation calling arbitrary function names
- Convergence Issues
- Example where Simple Discretization Fails
- Tricks for Hard Integrals
For a more details, a higher-level discussion, and many other (better) numerical integration
algorithms, see Numerical Recipes in C, Chapter 4. The NRC algorithms are available as
C functions on Athena:
How to Use Numerical Recipes in C