Simpson’s Adaptive Quadrature Algorithm

Simpson’s Adaptive Quadrature Algorithm to compute integrals in JAVA for CSC5561 CP2

In general
1. procedure integrate ( f , a , b , tau )
2.

3.

4. if e > t then
5. m = (a + b) / 2
6. Q = integrate(f,a,m,tau) + integrate(f,m,b,tau)
7. endif
8. return

Source code
Cp2.txt

Leave a Reply

Your email address will not be published. Required fields are marked *