Math, Mathematics, Science, Numerical Analysis, Integration.
cover the area under the curve. But as you can see i have removed the tolerance as it’s meaning-less when you are trying to learn how it converges. Although you can add it yourself like I did in the previous one. You can see that there is some error in both cases(i have included the error in