Generator

convex

A generator in the analysis library, called 7 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.

convex 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

A chord of x², and the curve under it. The curve x² with one chord drawn across it, the region between them shaded, and the midpoint heights of both marked. The comparison is computed at four hundred sample points.

show: "jensen"

4 points on x², and their average. Points marked on the curve x², their weighted centroid drawn as a single point, and the point of the curve directly below or above it, with both heights computed.

show: "amgm"

The two means, and the logarithm that separates them. The concave logarithm with a list of values marked on it, the mean of the logarithms and the logarithm of the mean drawn at different heights, and both means marked on the axis.

show: "fail"

The chord that dips under x⁴ − 3x². A function that is not convex with the worst chord found by search drawn across it, and the point at which the chord passes below the curve marked with the size of the dip.

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