Convert Riemann Sum To Definite Integral