Generator

euclid

A generator in the geometry library, called 12 times across 4 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.

euclid 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

Euclid's algorithm on a 34 by 13 rectangleThe rectangle is tiled by peeling off the largest square that fits, again and again, until nothing is left.131385322 × 131 × 81 × 51 × 31 × 22 × 1gcd(34, 13) = 1

show: "irrational"

Square-peeling on a 1 by √2 rectangleThe same construction as Euclid's algorithm, run on a rectangle whose sides have no common measure. 8 passes are drawn and it never terminates.1 square2 squares2 squares2 squares2 squares2 squares2 squares2 squares…and so on, forever1 : √2

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