Generator

The spacing of the numbers below the smallest normal, at 11 significand bits

One function in the range library, called 37 times across 6 essays. Below: what it draws at its defaults, what it draws at every value an essay asks for, the 38 claims it put to the test while drawing them, and where it stands against the rule this site is named for.

At its defaults it draws the spacing of the numbers below the smallest normal, at 11 significand bits. A staircase of spacing against magnitude on logarithmic axes. It descends in steps from the right and then flattens to a horizontal line at the left. A dashed line drops away instead.

subnormal-gap is one function in lib/figures/range.js — range — overflow, the subnormal band, and the norm that dies before it is one. Everything below came out of it during this build, at arguments taken from the essays rather than invented for this page. A figure here is the figure a reader meets in an essay, and if the generator changes, this page changes with it.

At its defaults

Drawn even though every essay passes arguments — which on this site is every essay, at 100% of placements since the standard pass. A default nothing exercises is a trap for the next essay to call this with none, and this is the page where a default that has drifted from the figures around it becomes visible.

The spacing of the numbers below the smallest normal, at 11 significand bitsA staircase of spacing against magnitude on logarithmic axes. It descends in steps from the right and then flattens to a horizontal line at the left. A dashed line drops away instead.10⁻⁷10⁻⁵10⁻³10⁻¹⁰10⁻⁸10⁻⁶magnitudespacing to the next numberthe smallest normalgradualflush to zerosmallest normal6.1·10⁻⁵smallest subnormal6·10⁻⁸octaves of subnormals10pairs that lie under FTZ10the spacing stops halving and stays putwhich is what makes x − y = 0 mean x = y

A staircase of spacing against magnitude on logarithmic axes. It descends in steps from the right and then flattens to a horizontal line at the left. A dashed line drops away instead.

show: "close-limits"

The arguments are the ones An octave to land in passes. A value nobody placed would be a picture no essay asked for and no claim was ever checked against.

Where each way of rescaling a two-well chain's stationary vector stops being exact in E4M3, against the barrier depth to 120 octaves, beside the limits read off each chain's own stored rates32 states: window under an octave from 63, below zero from 68; the window rule first fails at 66 and the aiming rule at 69; a stored rate is zero from 91; the window per step reproduces the unbounded exponent at every depth before that. 40 states: window under an octave from 79, below zero from 85; the window rule first fails at 81 and the aiming rule at 92; a stored rate is zero from 115; the window per step reproduces the unbounded exponent at every depth before that. 48 states: window under an octave from 95, below zero from 103; the window rule first fails at 96 and the aiming rule at 108; a stored rate is zero from none inside 120; the window per step reproduces the unbounded exponent at every depth before that. 56 states: window under an octave from 111, below zero from 120; the window rule first fails at 115 and the aiming rule at none inside 120; a stored rate is zero from none inside 120; the window per step reproduces the unbounded exponent at every depth before that. 64 states: window under an octave from none inside 120, below zero from none inside 120; the window rule first fails at none inside 120 and the aiming rule at none inside 120; a stored rate is zero from none inside 120; the window per step reproduces the unbounded exponent at every depth before that.020406080100120barrier depth, octaves32 statesa rate is zero from 9140 statesa rate is zero from 11548 states56 states64 stateswindow under one octavewindow width below zerothe window rule first failsthe aiming rule first failsthe window per step: exacta stored rate is zeroE4M3, five chain lengths, every depth from 2 to 120a window needs an octave to hold a power of two

32 states: window under an octave from 63, below zero from 68; the window rule first fails at 66 and the aiming rule at 69; a stored rate is zero from 91; the window per step reproduces the unbounded exponent at every depth before that. 40 states: window under an octave from 79, below zero from 85; the window rule first fails at 81 and the aiming rule at 92; a stored rate is zero from 115; the window per step reproduces the unbounded exponent at every depth before that. 48 states: window under an octave from 95, below zero from 103; the window rule first fails at 96 and the aiming rule at 108; a stored rate is zero from none inside 120; the window per step reproduces the unbounded exponent at every depth before that. 56 states: window under an octave from 111, below zero from 120; the window rule first fails at 115 and the aiming rule at none inside 120; a stored rate is zero from none inside 120; the window per step reproduces the unbounded exponent at every depth before that. 64 states: window under an octave from none inside 120, below zero from none inside 120; the window rule first fails at none inside 120 and the aiming rule at none inside 120; a stored rate is zero from none inside 120; the window per step reproduces the unbounded exponent at every depth before that.

show: "close-width"

The arguments are the ones An octave to land in passes. A value nobody placed would be a picture no essay asked for and no claim was ever checked against.

The width of the one window an exponent counter can hold an E4M3 value in, against the barrier depth to 120 octaves, for five chain lengths, with the depth at which the window rule first stops being exact ringed32 states: 1.39 octaves at 60, under one from 63, below zero from 68; the rule first fails at 66, where the width is 0.39; 40 states: 3.71 octaves at 60, under one from 79, below zero from 85; the rule first fails at 81, where the width is 0.39; 48 states: 5.13 octaves at 60, under one from 95, below zero from 103; the rule first fails at 96, where the width is 0.71; 56 states: 6.41 octaves at 60, under one from 111, below zero from 120; the rule first fails at 115, where the width is 0.39. The width falls in steps because the stored rates are E4M3 numbers. On 64 states it stays above one octave to 120.first failure, octaves of room left32 states: width where the rule fails0.3940 states: width where the rule fails0.3948 states: width where the rule fails0.7156 states: width where the rule fails0.39020406080100120-4-20246810121416barrier depth, octaveswindow width, octaves32 states40 states48 states56 statesdashed: zero width · dotted: one octave · rings: the rule's first failurethe rule fails above zero

32 states: 1.39 octaves at 60, under one from 63, below zero from 68; the rule first fails at 66, where the width is 0.39; 40 states: 3.71 octaves at 60, under one from 79, below zero from 85; the rule first fails at 81, where the width is 0.39; 48 states: 5.13 octaves at 60, under one from 95, below zero from 103; the rule first fails at 96, where the width is 0.71; 56 states: 6.41 octaves at 60, under one from 111, below zero from 120; the rule first fails at 115, where the width is 0.39. The width falls in steps because the stored rates are E4M3 numbers. On 64 states it stays above one octave to 120.

show: "close-trace", d: 76

The arguments are the ones An octave to land in passes. A value nobody placed would be a picture no essay asked for and no claim was ever checked against.

The value an exponent counter starts each step from in E4M3, along a 32-state chain with a barrier 76 octaves deep: one window for the whole chain against a window for each stepThe single window read off the chain's rates is -2.19 octaves wide at this depth, which is no window at all; under it the counter makes 30 rescales, 4 products fall below E4M3's smallest normal and 0 quotients reach 448, and the far well is wrong by 26.3 per cent where the unbounded exponent is wrong by 7.2. The window for each step, shaded, runs from the smallest normal over that step's p to the largest normal times its q over twice its p; under it the counter makes 22 rescales and reproduces the unbounded exponent exactly, wrong by 7.2 per cent.E4M3, 32 states, 76 octavesone window: width, octaves-2.2one window: far-well error0.26a window a step: far-well error0.072048121620242832-10-8-6-4-20246810state along the chainstored value, power of twolargest normalsmallest normalone windowa window a stepeach step's starting value · shaded: its own window · rings: a product in the banda step suits itself

The single window read off the chain's rates is -2.19 octaves wide at this depth, which is no window at all; under it the counter makes 30 rescales, 4 products fall below E4M3's smallest normal and 0 quotients reach 448, and the far well is wrong by 26.3 per cent where the unbounded exponent is wrong by 7.2. The window for each step, shaded, runs from the smallest normal over that step's p to the largest normal times its q over twice its p; under it the counter makes 22 rescales and reproduces the unbounded exponent exactly, wrong by 7.2 per cent.

show: "close-error"

The arguments are the ones An octave to land in passes. A value nobody placed would be a picture no essay asked for and no claim was ever checked against.

The far well's relative error along a 32-state E4M3 chain at every barrier depth from 2 to 90 octaves, under three rescaling rules, the window per step being the unbounded exponent's own errorBelow 66 octaves all three reproduce the unbounded exponent entry for entry. The far well is lost — wrong by half or more — at 16 of the 89 depths when the counter aims every step, at 9 under one window and at 0 under a window per step, whose error is the unbounded exponent's at every depth. From 91 octaves a stored rate is zero and no rule has a chain to compute.E4M3, 32 states, 89 depthsaim every step: depths lost16one window: depths lost9a window a step: depths lost0010203040506070809010⁻⁴10⁻³10⁻²10⁻¹1barrier depth, octavesfar well, relative erroraim every stepone windowa window a stepdashed: wrong by half · floored at 10⁻⁴past the closing, the step rule alone is exact

Below 66 octaves all three reproduce the unbounded exponent entry for entry. The far well is lost — wrong by half or more — at 16 of the 89 depths when the counter aims every step, at 9 under one window and at 0 under a window per step, whose error is the unbounded exponent's at every depth. From 91 octaves a stored rate is zero and no rule has a chain to compute.

show: "close-cost"

The arguments are the ones An octave to land in passes. A value nobody placed would be a picture no essay asked for and no claim was ever checked against.

How many exact power-of-two rescales each rule makes along an E4M3 chain, averaged over every barrier depth at which the chain is stored, for five chain lengths32 states: aiming 26.8, one window 19.2, a window a step 12.6; 40 states: aiming 33.8, one window 24.4, a window a step 16.2; 48 states: aiming 39.8, one window 26.9, a window a step 17.3; 56 states: aiming 45.4, one window 27.7, a window a step 17.7; 64 states: aiming 50.7, one window 27.8, a window a step 17.3. The window per step is the cheapest of the three on every length and the only one exact on every depth.0102030405032 states26.819.212.631 steps40 states33.824.416.239 steps48 states39.826.917.347 steps56 states45.427.717.755 steps64 states50.727.817.363 stepsaim every stepone windowa window a stepmean rescales along the chain, every stored depth to 120 octavesrescales per run; the comparison is made every step under every rulethe exact rule is also the cheapest

32 states: aiming 26.8, one window 19.2, a window a step 12.6; 40 states: aiming 33.8, one window 24.4, a window a step 16.2; 48 states: aiming 39.8, one window 26.9, a window a step 17.3; 56 states: aiming 45.4, one window 27.7, a window a step 17.7; 64 states: aiming 50.7, one window 27.8, a window a step 17.3. The window per step is the cheapest of the three on every length and the only one exact on every depth.

What it checked while drawing

Every figure above checked its own claims on the way to being drawn, and a claim that failed would have stopped the picture rather than shipped a wrong one. Those checks used to leave no trace at all: a passing one returned true and the only evidence the figure had checked anything was that nothing crashed. The list below is what they actually said, collected by running this generator with an observer installed — not a description of what it is believed to check.

38 distinct claims across 6 sets of arguments, grouped below by shape — because most of them are one sentence with a different number in it, and how many separate times that sentence was put to the test is the informative part.

with subnormals, 1 bits below the smallest normal is still a number — checked 10 times

e4m3: the headroom buys more than the band — checked 2 times

e4m3: the window reproduces the unbounded exponent — checked 2 times

e5m2: every depth drawn is shallower than any flush failure, so the range plays no part — checked 2 times

a barrier depth between 0 and 120 octaves

a block size the dial offers

a block size the study uses

a depth the dial draws

a depth the sweep draws

a format this figure draws

a format this file measures

a rescaling rule this file knows

a significand between four and eleven bits

an E5M2 sum loses the far well at the shallowest barriers

and flush-to-zero loses every one of them

each arithmetic survives a deeper barrier than the one before it

flush to zero never inflates it

fp16: the headroom buys more than the band

fp16: the window reproduces the unbounded exponent

past the barrier every component carries the error the dip made

rounding to nearest at the bottom of a format inflates the far well before it empties it, with subnormals and without

the componentwise condition number does not move with the depth

the normwise backward error stays below the unit roundoff at every depth, in both arithmetics

the subnormal band is one octave per significand bit, less one agree

there are neighbours to test

three bits fail at half on most chains with no range limit

Against the rule

The rule does not apply to it. It factorises nothing, so there is no residual it could be withholding. That is worth stating rather than leaving blank: a site that reported the rule as satisfied by every generator would be counting mostly generators the rule never reached.

Across the library: the rule bites on 217 of 397 generators — 199 print a residual and 18 are exempt with a published reason; 180 factorise nothing. Read from lib/residual-rule.js, which is the same body the gate enforces from, and the gate's last check fails the build if this page and it disagree about any generator.

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 arithmetic underneath

An octave to land in

A window read off a chain's own rates kept an eight-bit recurrence exact to sixty octaves, and its width, falling towards zero, was predicted to mark where it would stop being exact, to within an octave. It stops two to seven octaves earlier, as soon as the window is narrower than the octave a power-of-two rescale moves by. The rule that aims every step, predicted to outlast it, fails too, once the value it aims at no longer fits. A window computed for each step separately never narrows below 4.8 octaves, reproduces the unbounded exponent on every depth at which the format can still store the chain, and makes the fewest rescales of the three.

The arithmetic underneath

Room for the step, not the value

Starting a recurrence at the top of an eight-bit format's range spends its headroom once. An exponent counter beside the stored value was predicted to spend it at every step, remove every range failure and leave only the precision. Rescaled on the value — back to one whenever it nears the bottom or the top — it does not: E4M3 still loses its far well on seven or more chains of nine, because one climbing step multiplies the value by forty and E4M3 clips silently at 448. Rescaled into a window read off the chain's own rates, it reproduces the unbounded exponent bit for bit on all 531 runs of every format, and what is left of E4M3's limit is nothing.

The arithmetic underneath

The far well in a byte

Half precision's subnormals carried a two-well chain's far well ten octaves deeper than flush to zero, and the essay that measured it predicted that on the eight-bit formats the band would be worth almost nothing and starting high almost everything. Measured on nine chains, the band is worth what it always was, two or three octaves; starting at the top of the range is worth ten and fourteen; and at three significant bits the far well is lost on eight chains of nine with no exponent limit at all, because the precision fails before the range does.

The arithmetic underneath

The numbers below the smallest one

Below the smallest normal number the spacing stops halving and stays put, all the way to zero. That is what gradual underflow is, and the thing it buys is the sentence every algorithm assumes without being told — x minus y is zero only when x equals y.

The arithmetic underneath

The well on the far side of the band

Gradual underflow was said to buy a predicate and not an answer, because a quantity that has decayed into the subnormal range is already lost. A quantity that passes through the band on its way somewhere else is not. The stationary distribution of a two-well chain, computed in half precision across a barrier whose top is two to the minus sixteen of the near well, keeps its far well's probability of 0.2454 to three digits with subnormals and returns exactly zero without them. The normwise backward error calls both answers exact.

The arithmetic underneath

Twice the block, half the depth

An eight-bit chain kept exact by a window per step was predicted to keep exactness with one exponent shared by two states, and to lose it with four from the depth where four of its steepest steps span more than the narrowest window, 4.8 octaves. Blocks of two fail on four chains of five, at 66 to 114 octaves. Blocks of four fail at 35 to 66, two to three times deeper than the predicted 13 to 26. Every block size fails within three octaves of the depth where its block's window empties, and that depth is 4.0 to 4.6 octaves for each state a block holds.

The whole library · All essays · What must fail