Duh, it turns out that Riemann sums are a lot more important than I first thought they were.