I'm doing a project on numerical integration in Matlab and I'm looking for some nice things to program.
So far, I programmed:
- Trapezium rule
- Simpson rule
- Double integral over a rectangle
- Estimating $\pi$ using the integral $$\int\limits_0^{1}\frac{4dx}{1+x^2}$$
Do you know any other things that involve integrals and are not too hard to program (I am a first year university undergraduate). Any ideas are welcome. I'm aware that this is a subjective question, but I'm interested in all kind of things.
Thanks in advance.
First of all: In this context the integration is very often referred to as quadrature (just an old term).
A fun project you might want to try is adaptive quadrature. There are many ways to achieve that, but the rough idea is that you add more nodes where your current approximation is not good enough. (You make a finer grid where the function is "wild".)