Generator

riemann

A generator in the analysis library, called 13 times across 3 essays. Below: what it draws at its defaults and at each mode an essay asks for, what it checks while drawing, and everywhere it is used.

riemann is one function. Everything below came out of it during this build, at parameters taken from the essays rather than invented for this page — so a figure here is the same figure a reader meets in an essay, and if the generator changes, this page changes with it.

At its defaults

8 rectangles under a curveA left-endpoint Riemann sum with 8 rectangles approximating the area under a curve.0.511.522.5301234xysum ≈ 5.790exact = 6.300

show: "sequence"

Riemann sums convergingThe same area approximated with 6, 18, 54 rectangles.12301234n = 6 · 5.63112301234n = 18 · 6.06712301234n = 54 · 6.221

show: "pathological"

Dirichlet's function has no Riemann integralA function that is 1 at every rational and 0 at every irrational. Every strip, however narrow, contains both, so the Riemann sum depends entirely on which points are sampled.01sample the rationals: every rectangle has height 1, total 1sample the irrationals: every rectangle has height 0, total 0

show: "accumulate"

Area is the undoing of slopeAbove, a positive function with the area from 0 to 1.80 shaded. Below, that area plotted against where it stops. The lower curve's slope at 1.80 is 1.129, which is exactly the upper curve's height there.00.511.522.5300.51fthis areaheight 1.12900.511.522.5300.511.522.5where the area stopsarea so farslope 1.129

What it checks while it draws

Collected by running the family and listening to lib/verify.js, not written here. The count is how many separate times this build put that claim to the test.

Where it is called

Changing this generator changes every figure on this list. That is what makes the list worth publishing rather than keeping in a check script.

The whole library · What the figures prove