Trapezoidal rule for getting the integral numerically Bugs I did make the code reusable. Rohan helped me to fix that. There have some problems in error calculation. PN sir helped me to find that.