Dave,
Looking at your picture, I am having flashbacks to programming a handheld calculator (HP 15c) to do a "step" integration by calculating a series of very small rectangular areas under a curve and adding them up. The smaller the rectangles, the more accurate the results. Argg! No sleep...