Approximates integrals using the Riemann Sum method of approximation