Modify your area program and see how accurately it computes when you use intervals.
to depending on left or right rectangles.