Trapezoid Sum

This is not a real riemann sum but it always works when is continuous by IVT.