A Riemann sum integral approximator