-simpsons method
-summation using iterative method