Generator

Counting the eigenvalues inside a circle: an integral that is an integer once it has converged

One function in the nlevp library, called 22 times across 5 essays. Below: what it draws at its defaults, what it draws at every value an essay asks for, the 13 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 counting the eigenvalues inside a circle: an integral that is an integer once it has converged. The number of eigenvalues of the delay problem inside |z| = 2, computed as (1/2πi)∮tr(T(z)⁻¹T′(z))dz by the trapezoidal rule. The true count is 2, from the closed form. The error runs 0.00282, 0.0572, 0.0151, 5.25·10⁻⁴, 3.6·10⁻⁷, 1.35·10⁻¹³ at 4 to 128 points — a straight line on this axis is a constant factor a doubling, and this falls faster than that, which is what exponential convergence looks like when the integrand is analytic on the contour. The answer is then ROUNDED, and 0 of the 6 quadratures round to the wrong integer while looking exactly as confident as the ones that do not. The only evidence available is the distance from the nearest integer, which is the quantity plotted.

contour-count is one function in lib/figures/nlevp.js — infinitely many eigenvalues — a contour that counts, and the probe block that is a ceiling. 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.

Counting the eigenvalues inside a circle: an integral that is an integer once it has convergedThe number of eigenvalues of the delay problem inside |z| = 2, computed as (1/2πi)∮tr(T(z)⁻¹T′(z))dz by the trapezoidal rule. The true count is 2, from the closed form. The error runs 0.00282, 0.0572, 0.0151, 5.25·10⁻⁴, 3.6·10⁻⁷, 1.35·10⁻¹³ at 4 to 128 points — a straight line on this axis is a constant factor a doubling, and this falls faster than that, which is what exponential convergence looks like when the integrand is analytic on the contour. The answer is then ROUNDED, and 0 of the 6 quadratures round to the wrong integer while looking exactly as confident as the ones that do not. The only evidence available is the distance from the nearest integer, which is the quantity plotted.11.31.61.92.210⁻¹⁶10⁻¹³10⁻¹⁰10⁻⁷10⁻⁴10⁻¹10²log₁₀ quadrature pointsdistance from the true counthalf an eigenvaluean integer, eventuallytrue count2at 4 points2at 128 points2finest error1.4·10⁻¹³the integral is an integerand a rounding hides how far it was

The number of eigenvalues of the delay problem inside |z| = 2, computed as (1/2πi)∮tr(T(z)⁻¹T′(z))dz by the trapezoidal rule. The true count is 2, from the closed form. The error runs 0.00282, 0.0572, 0.0151, 5.25·10⁻⁴, 3.6·10⁻⁷, 1.35·10⁻¹³ at 4 to 128 points — a straight line on this axis is a constant factor a doubling, and this falls faster than that, which is what exponential convergence looks like when the integrand is analytic on the contour. The answer is then ROUNDED, and 0 of the 6 quadratures round to the wrong integer while looking exactly as confident as the ones that do not. The only evidence available is the distance from the nearest integer, which is the quantity plotted.

show: "centre-price"

The arguments are the ones A centre that chooses which pair cancels passes. A value nobody placed would be a picture no essay asked for and no claim was ever checked against.

Points for ten digits of a contour count holding exactly a run of two or more of the delay problem's real eigenvalues: the best circle about the origin, where one exists, and the best about any centre on the real axis0.822 to 1.587: centred 22 points at c = 1.10, R = 0.88; about the origin 41 at R = 2.064, a geometric mean between two real eigenvalues. 0.822 to 2.686: centred 21 points at c = 1.43, R = 1.67; about the origin 78 at R = 3.129, a geometric mean between two real eigenvalues. 0.822 to 3.644: centred 32 points at c = 2.30, R = 2.85; about the origin 341 at R = 3.908, between a real eigenvalue and a complex pair. 1.587 to 2.686: centred 38 points at c = 2.16, R = 0.88. 1.587 to 3.644: centred 20 points at c = 3.10, R = 1.86. 2.686 to 3.644: centred 26 points at c = 3.25, R = 0.97. Only runs starting at the first eigenvalue can be held by a circle about the origin.1020501002005000.822 to 1.58741220.822 to 2.68678210.822 to 3.644341321.587 to 2.686381.587 to 3.644202.686 to 3.64426points for ten digitsbest circle about the originbest circle about any real centrethe four together: 341 about the origin, 32 about 2.3the centre is worth most where the rays differ

0.822 to 1.587: centred 22 points at c = 1.10, R = 0.88; about the origin 41 at R = 2.064, a geometric mean between two real eigenvalues. 0.822 to 2.686: centred 21 points at c = 1.43, R = 1.67; about the origin 78 at R = 3.129, a geometric mean between two real eigenvalues. 0.822 to 3.644: centred 32 points at c = 2.30, R = 2.85; about the origin 341 at R = 3.908, between a real eigenvalue and a complex pair. 1.587 to 2.686: centred 38 points at c = 2.16, R = 0.88. 1.587 to 3.644: centred 20 points at c = 3.10, R = 1.86. 2.686 to 3.644: centred 26 points at c = 3.25, R = 0.97. Only runs starting at the first eigenvalue can be held by a circle about the origin.

show: "centre-check"

The arguments are the ones A centre that chooses which pair cancels passes. A value nobody placed would be a picture no essay asked for and no claim was ever checked against.

The count's error from the quadrature against the sum of one closed-form term per eigenvalue, about centres from −1 to 3.6, on 143 circles and point countsEvery pair with an error above 10⁻⁸. The worst relative disagreement is 1.8·10⁻⁸. Circles passing within 0.05 of an eigenvalue are left out.10⁻⁸10⁻⁶10⁻⁴10⁻²110⁻⁸10⁻⁶10⁻⁴10⁻²1|error| from the quadrature|sum of the terms|dashed: equalityone term per eigenvalue, about any centre

Every pair with an error above 10⁻⁸. The worst relative disagreement is 1.8·10⁻⁸. Circles passing within 0.05 of an eigenvalue are left out.

show: "centre-parity"

The arguments are the ones A centre that chooses which pair cancels passes. A value nobody placed would be a picture no essay asked for and no claim was ever checked against.

The count's error at every number of points from 8 to 60, on a circle about 1 that holds the eigenvalue 0.822 behind its centre and leaves 1.587 outside in front of it at the same ratioRadius 0.3234: both eigenvalues sit at ratio 0.551 to the circle, on opposite rays. At even point counts the error falls like 0.192 per point, the next eigenvalue's ratio — 1.9·10⁻⁶ at 8, 6.8·10⁻⁸ at 10, 2.5·10⁻⁹ at 12, 9.1·10⁻¹¹ at 14, 3.4·10⁻¹² at 16. At odd counts it falls like 0.551 — 0.0094 at 9, 0.0029 at 11, 8.7·10⁻⁴ at 13, 2.6·10⁻⁴ at 15, 8·10⁻⁵ at 17.816243240485610⁻¹⁷10⁻¹⁴10⁻¹¹10⁻⁸10⁻⁵10⁻²number of points|error in the count|odd countseven countssame circle, same eigenvalues: only the parity of N differsthe far ray flips only when N is odd

Radius 0.3234: both eigenvalues sit at ratio 0.551 to the circle, on opposite rays. At even point counts the error falls like 0.192 per point, the next eigenvalue's ratio — 1.9·10⁻⁶ at 8, 6.8·10⁻⁸ at 10, 2.5·10⁻⁹ at 12, 9.1·10⁻¹¹ at 14, 3.4·10⁻¹² at 16. At odd counts it falls like 0.551 — 0.0094 at 9, 0.0029 at 11, 8.7·10⁻⁴ at 13, 2.6·10⁻⁴ at 15, 8·10⁻⁵ at 17.

show: "centre-plane", k: 4

The arguments are the ones A centre that chooses which pair cancels passes. A value nobody placed would be a picture no essay asked for and no claim was ever checked against.

The delay problem's eigenvalues near the origin, with the cheapest circle about the origin and the cheapest about any real centre that hold exactly the first 4 real eigenvaluesAbout the origin: radius 3.908, 341 points for ten digits. About 2.30: radius 2.85, 32 points. The real eigenvalues are 0.822, 1.587, 2.686 and 3.644; the nearest complex pairs have moduli 4.19 to 4.56.points for ten digitsabout the origin341about 2.3032-4-20246-4-2024real partimaginary partdashed: about the originsolid: best real centregreen: real eigenvaluespurple: complex pairsevery circle shown holds exactly the first k real eigenvaluesmove the centre, not only the radius

About the origin: radius 3.908, 341 points for ten digits. About 2.30: radius 2.85, 32 points. The real eigenvalues are 0.822, 1.587, 2.686 and 3.644; the nearest complex pairs have moduli 4.19 to 4.56.

show: "centre-terms"

The arguments are the ones A centre that chooses which pair cancels passes. A value nobody placed would be a picture no essay asked for and no claim was ever checked against.

Each eigenvalue's ratio to the circle — the rate its term in the count's error falls at — at the cheapest centred circles holding the first two, three and four real eigenvalues, and at the cheapest origin circle holding fourfirst 2, about 1.10, R 0.88 (22 points): largest ratios 0.554 (1.587, inside), 0.554 (2.686, outside), 0.345 (3.644, outside), 0.317 (0.822, inside), 0.183 (pair 4.19, outside). first 3, about 1.43, R 1.67 (21 points): largest ratios 0.754 (2.686, inside), 0.754 (3.644, outside), 0.361 (0.822, inside), 0.335 (pair 4.19, outside), 0.335 (pair 4.19, outside). first 4, about 2.30, R 2.85 (32 points): largest ratios 0.519 (0.822, inside), 0.508 (pair 4.25, outside), 0.508 (pair 4.25, outside), 0.507 (pair 4.19, outside), 0.507 (pair 4.19, outside). first 4, about the origin, R 3.91 (341 points): largest ratios 0.933 (3.644, inside), 0.933 (pair 4.19, outside), 0.933 (pair 4.19, outside), 0.920 (pair 4.25, outside), 0.920 (pair 4.25, outside). A short vertical line marks two real eigenvalues, one inside and one outside on the same side of the centre, at equal ratio — a pair whose terms cancel.00.250.50.751first 2, about 1.10, R 0.8822 ptsfirst 3, about 1.43, R 1.6721 ptsfirst 4, about 2.30, R 2.8532 ptsfirst 4, about the origin, R 3.91341 ptsratio to the circle — a term falls like this to the Nfilled green: real inside; ring: real outside; purple: complex pairsthe cancelling pair is chosen, the rest pushed away

first 2, about 1.10, R 0.88 (22 points): largest ratios 0.554 (1.587, inside), 0.554 (2.686, outside), 0.345 (3.644, outside), 0.317 (0.822, inside), 0.183 (pair 4.19, outside). first 3, about 1.43, R 1.67 (21 points): largest ratios 0.754 (2.686, inside), 0.754 (3.644, outside), 0.361 (0.822, inside), 0.335 (pair 4.19, outside), 0.335 (pair 4.19, outside). first 4, about 2.30, R 2.85 (32 points): largest ratios 0.519 (0.822, inside), 0.508 (pair 4.25, outside), 0.508 (pair 4.25, outside), 0.507 (pair 4.19, outside), 0.507 (pair 4.19, outside). first 4, about the origin, R 3.91 (341 points): largest ratios 0.933 (3.644, inside), 0.933 (pair 4.19, outside), 0.933 (pair 4.19, outside), 0.920 (pair 4.25, outside), 0.920 (pair 4.25, outside). A short vertical line marks two real eigenvalues, one inside and one outside on the same side of the centre, at equal ratio — a pair whose terms cancel.

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.

13 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.

a circle the dial holds

a contour the sweep can be taken on

a division by a complex number that is not zero

a gap on the list

a Lambert argument that is not zero

a point count the sweep can show

a run of real eigenvalues a circle is drawn for

a run of two to four real eigenvalues

a set of real eigenvalues some circle about a real centre holds alone

a size the contour integrals can afford

and the error falls by two orders across the sweep

LU is for square matrices

the finest quadrature rounds to the true count

Against the rule

It draws a decomposition and prints its residual. It calls countInside, and every figure above carries the badge — which residualcheck verifies by looking for it in the emitted SVG rather than by finding the call that builds one. A badge that is constructed and then left out of the body is the failure that check exists for.

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.

Where the flop count stopped predicting the time

A centre that chooses which pair cancels

A contour count's error is one closed-form term per eigenvalue, and two real eigenvalues on one ray cancel at their geometric mean — about the origin. Moved along the real axis, the centre was predicted to buy a further factor of two by putting real eigenvalues on two rays, the far one cancelling with a sign flip. The flip is parity: an eigenvalue behind the centre changes sign only at odd point counts. The factor is not two. Counting the delay problem's first two and three real eigenvalues, the best centre costs 22 and 21 points against the origin's 41 and 78; counting all four, 32 against 341, because about the origin the circle has to pass between a real eigenvalue and a complex pair and about 2.3 it does not. The centre does not add a cancellation. It chooses which pair cancels and pushes everything else away.

The eigenvalue problem that is not linear

A problem with infinitely many eigenvalues

Let the matrix depend on λ through something that is not a polynomial and three things stop being true at once. There is no linearisation, there is no characteristic polynomial, and "compute the spectrum" is not a request that can be granted — the only finite question is how many eigenvalues are inside this circle.

Randomised, and the guarantee that changes kind

Counting what is inside a circle

A trace of a matrix nobody wants to form, integrated around a contour, gives an integer — how many eigenvalues are inside. It converges exponentially, it is estimated with random probes, and the probe block is a ceiling that the answer does not mention.

Where the flop count stopped predicting the time

The circle between two eigenvalues

A contour count's error is not approximately governed by the nearest eigenvalue; it is exactly one closed-form term per eigenvalue, and summing those terms reproduces the quadrature to a millionth at 1,720 radius and point pairs. Three things follow. The rate is the ratio of the two moduli the circle sits between, not a distance, so two circles 0.2 from their nearest eigenvalue converge three times apart. Ten digits cost about 21 points divided by log₁₀ of that ratio, 71 points with twelve eigenvalues inside and 3,476 with six. And the best circle is not halfway: at the geometric mean of two eigenvalues on one ray their two terms are equal and opposite, and ten digits cost 27 points where the midpoint needs 84.

Where the flop count stopped predicting the time

The last digit is the cheapest

Every cost curve measured here has the same shape: the first digits are cheap and the last ones are not. One method inverts it. Doubling the work buys twice as many digits as the previous doubling did, so the price of a digit halves every time it is paid.

The whole library · All essays · What must fail