Compute a Riemann Sum Approximation (AsymptoticSum)
Compute a Riemann sum approximation for a definite integral.
Compute the approximation for large values of .
Compare with the exact result given by Integrate.
Obtain the exact result using DiscreteLimit.
Compute a trapezoidal approximation for the integral.
Compute the approximation for large values of .
The trapezoidal rule is clearly more accurate than Riemann sum approximations.