Approximating pi by dividing the area under a certain curve into thin rectangles. The thinner the rectangles are, the closer their total area gets to the area under the curve, which is pi. Try running it with different numbers of rectangles. It takes almost 500 rectangles to get seven significant figures for pi.