Generator

quaternion

A generator in the algebra library, called 6 times across 1 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.

quaternion 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

The quaternion multiplication table, from i² = j² = k² = ijk = −1. A four-by-four multiplication table of the quaternion units, with the row giving the left factor, every entry computed from Hamilton's rule, and the pair that differs between the two orders marked.

show: "rotate"

A turn about i and one about j, in both orders. A cube in its starting position and the two positions reached by applying the same two quarter turns in the two possible orders, which are not the same position.

show: "double"

One full turn returns the object and not the quaternion. A row of squares showing an object's orientation as it turns through two full revolutions, above a plot of the scalar part of the quaternion performing the turn, which reaches minus one after the first revolution and one only after the second.

show: "algebras"

What each doubling costs: the reals, the complex numbers, the quaternions, the octonions. A table of the four division algebras with their dimensions, the number of ordered pairs of basis units that fail to commute, and the number of triples that fail to associate, each count made by multiplying them out.

What it checks while it draws

Collected by running the family and recording what it asserted, not written here. The count is how many separate times the claim was put to the test while these drawings were made.

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