Math, Mathematics, Science, Numerical Analysis, Integration.
(we will use python): Integration using Trapezoidal in Python Algorithm Define f(x), the function which we want to integrate. Get the values of a , b, tolerance(The error value, i.e., |real value- calculated value|). Assign the values of fa = f(a), fb = f(b), n . Use a loop to perform summation.