The machine, compiled
Everything is in hand. This rung assembles it, on one curve, and runs the result.
The curve is the rectangular hyperbola . It is chosen because it is the smallest curve in this field’s catalogue whose machine has all four gadget kinds and a summing chain longer than one link — a line has no reflectors and a circle has no chain to speak of — and because at twenty bars it is still a picture a reader can hold.
What the compiler does, in order
Expand. , with unit links, comes out as a constant of and three cosine terms, at frequency pairs , and . Under a millisecond, and checked against a direct evaluation at three hundred random angle pairs.
Choose a start. Scan the driving angle; at each, find every second angle putting the arm’s tip on the curve; score each candidate by how far the machine’s parallelograms would be from flat, and keep the best. Here that is , , at a score of out of a possible — a machine whose worst parallelogram is well clear of degenerate.
Build the arm. Pivot, two links of unit length, tracing point at the tip. One parallelogram carries the second angle back to the pivot, which is legal because the arm’s first link is a bar.
Build the frequencies. and by one reflector each; by a mean, a reflector to add, and a reflector to negate. Three reflectors and one mean, shared where they can be shared.
Apply phase and amplitude. One rigid attachment per term: a triangular link at the right angle and the right reach.
Sum. Three links head to tail from the pivot, with four parallelograms carrying the later terms’ directions out along the chain.
Close. The last vertex is held on the vertical line at , which is the statement that the three cosines add to , which is the statement that .
Drive. A crank on the arm’s first link, replacing its bar.
Twenty bars, twenty joints, thirty-five equations in thirty-six unknowns, one degree of freedom.
Positioning it, and the trap that was avoided
Every joint’s position at the starting configuration is known in closed form — that is what a construction is — and the compiler writes them all down before solving anything.
That seed is not a check. A Newton solve handed the answer agrees with the answer having never run an iteration, and this site has made exactly that mistake and recorded it: the expansion phase built a solver seeded with a closed form and reported agreement, and the agreement was vacuous.
So the seed is used once, at the start, and everything afterwards is a march. Each new driving angle is solved from the previous solved position, which is a genuine Newton–Raphson problem on thirty-five equations with a starting guess that is merely nearby. The solver reports its own residual at every step and the worst over the whole arc is .
The seed is needed at all because a hundred-bar linkage solved from a bad guess does not fail — it converges, to a different assembly, which is precisely the object this field spends two rungs on. Starting from the construction picks the intended assembly, and the branch census picks the others on purpose.
The check, which the machine cannot see
Here is the whole reason this field can make a claim at all.
The machine’s constraint list is twenty bar lengths, four rigid attachments, one rail, one line and one crank. Not one of them mentions the polynomial. The compiler used the polynomial to decide what the bars should be; the mechanism, once built, has no access to it.
So evaluating at the solved tracing point is a question from outside. Over the whole working arc — a hundred and sixty-two solved positions, radians of driving angle — the worst answer is .
A readout that does not change across a slider is usually a bug, and this site has a standing note about it — a figure whose number is constant is normally a figure whose number was computed once. Here it is the result. A machine compiled from an equation satisfies the equation at every position it has, so a readout that moved would mean the construction had failed.
What the machine is not doing
Three descriptions that fit the picture and are wrong, worth clearing before the rest of the field builds on it.
It is not tracing the curve by following it. There is no sense in which the machine knows where the curve is and steers along it. It is a one-freedom linkage, driven at its arm; the configurations it can occupy are the ones its bars permit, and the set of those happens to be the set on which the polynomial vanishes. The curve is where the machine can be, not where it is trying to go.
It is not solving the polynomial numerically. Nothing iterates towards a root. The Newton solve in this site’s solver is finding the mechanism’s configuration from its bar lengths, which it would do identically if the bar lengths had come from anywhere else.
It is not an approximation with a very small error. The residual is the solver’s floor rather than a method error, and the distinction is checkable: run the solve to a tighter tolerance and the curve residual follows it down. An approximation would have a floor of its own, above the arithmetic, and would stop improving.
That third one is the one worth testing rather than asserting, and the frontier rung does test it, by putting this machine beside two that genuinely are approximations and measuring all of them the same way. Watt’s linkage stops at nine per cent of its stroke however carefully anything is solved.
Where the arc ends
The machine turns through radians and not through a full circle, and the reason is a real property of it rather than an artefact of how far the sweep was asked to go.
Drive far enough and one of the reflectors reaches the configuration where its rhombus flattens onto its own mirror. The two placements of its output merge there, and a continuation through the merge may come out on the other one. Nothing breaks: every bar is still its own length, the closure residual is still at , and the machine goes on turning.
What changes is the function it computes. Past that point the tracing point is on some other curve, and the polynomial reads a number of order one.
The march stops when it detects that, by a measurement finer than either the closure or the curve residual: the departure, which compares each gadget’s actual output angle against the angle its specification asks for, given the machine’s own two arm angles. The departure names which gadget went and at what driving angle, where the curve residual only says that something did. It is the field’s third instrument and the rung on singularities is about what it sees.
The trace, against the set it is supposed to be on
The scene shows the machine at one instant. What it draws over its arc is the other half of the picture, and the two objects in it were found by routes that share nothing.
The grid walk is worth a sentence because it is the only part of this field that has nothing to do with mechanisms. Sample the polynomial on a fine grid, find every cell whose corners disagree in sign, and cut a segment across it by linear interpolation — marching squares, which the synthesis field already uses to draw Burmester curves. It has no idea a linkage exists.
Overlaying the two is therefore a comparison rather than a demonstration, and it is the honest way to draw the claim. A figure that plotted the machine’s trace alone and captioned it the lemniscate would be asserting the very thing in question.
Reading the picture
Two conventions in the scene above are worth stating, because they are decisions rather than defaults.
The colours are the argument. A machine of twenty bars could be labelled joint by joint and a machine of four hundred could not, and this family draws both the same way for consistency: one colour per gadget kind, so what a reader sees at a glance is the proportion of the machine that is arithmetic and the proportion that is transport. On this curve the translators are four bars of twenty. On the quintic they are three hundred and eight of four hundred and thirteen, and the picture is almost entirely one colour.
The curve is drawn separately. The thin line is the set where the polynomial vanishes, found by marching squares over a grid, with no mechanism involved anywhere. Drawing the machine’s own trace and calling it the curve would make the picture a tautology; drawing both makes it a comparison.
The closure, spelt out
The last constraint deserves a paragraph because it is the only one that is not a bar, and because it is where the historical construction and this one differ.
says the horizontal components of the term links add to . So the chain’s last vertex is at , whatever its height: it lies on a vertical line. One prismatic pair does that in one equation, and the machine above uses one.
Kempe would not have. The whole interest of his result was that it used revolutes only, and a prismatic pair is a different lower pair with a different history. Replacing it with a Peaucellier cell — whose output point runs on an exact straight line — costs seven bars and five joints, and does not change what the machine draws by more than the solver’s floor.
Seven bars, on every curve. The cell’s size has nothing to do with the polynomial, so it is more than half the machine on a line and under two per cent of it on a quintic. The counts in this field are quoted with the slide, because that keeps them about the compilation, and the all-revolute number is quoted beside them.
The starting configuration, and why it has to be chosen
One step of the pipeline above looks like housekeeping and is not, so it gets its own paragraph.
The compiler does not start the machine wherever the driving angle happens to be. It scans, and it scores, and the scoring exists because two configurations are degenerate and both are easy to land on by accident.
The folded arm. Set and the tracing point is back at the pivot. That configuration is on every curve through the origin at every driving angle — which is three of this catalogue’s nine, since a polynomial with no constant term vanishes at the origin — and a scan taking the first root it finds picks it. The machine that comes back has a flattened parallelogram carrying and will not move at all: the residual grows exactly in proportion to the driving angle, every joint stays where it was, and no gate on this site says why.
A flat translator. Two term directions parallel, so a parallelogram in the ripple has no area and its two bars are one equation. On the cubic at the naive start that cost eight ranks of a hundred and thirty-four, and the machine again would not move.
Both are the same condition — a parallelogram with no area — so both are scored the same way: the worst over every pair the machine builds a parallelogram from, together with the arm’s own . The score is computed from the closed forms of the term angles rather than by compiling, because compiling a five-hundred-bar linkage at each of three hundred candidate starts to discover it is singular is the expensive way to learn something arithmetic already knows.
The scores are published with the machines. The line starts at — perfectly clear — and the quintic at , which is a machine whose worst parallelogram is five degrees from flat and is the best start its eighteen term directions allow.
One freedom, and what that means at four hundred bars
The mobility bookkeeping is worth doing once, here, where it is small enough to follow.
The arm has two degrees of freedom: two free joints, four coordinates, two bars. Every gadget adds exactly as many equations as it adds unknowns — a mean is two coordinates and two bars, a reflector four and four, an offset two and two, a translator two and two — so no gadget changes the count. The closing line removes one. The crank removes the other.
So the machine is square: thirty-six unknowns, thirty-five equations plus the crank’s two in place of the arm’s first bar, and a Jacobian of full rank. Newton on a square system, with a unique nearby solution.
That property survives to any size. The quintic’s machine has four hundred and eighty unknowns and one degree of freedom, and the count is right about it — which is a mild surprise on a site whose constraint field is mostly about counts being wrong, and which stops being true the moment the braces arrive.
Why not just check the residual and be done
There is an obvious objection to all the instrument-building above: the closure residual is already at , so what is the curve residual for?
Because they are different questions, and this field’s central result is that the first cannot answer the second.
Assemble the same twenty bars sixteen different ways — a parallelogram has two closures, and there are four of them — and eight of the sixteen converge. Four put the tracing point on the curve. Four put it somewhere else entirely, with a polynomial reading of where zero was wanted.
All eight close to .
No tolerance on the closure separates those columns, at any level, because they are not separated in that quantity at all. That is why this field carries three instruments rather than one, and why the rung on branches is where the argument actually lands.
It is also the answer to a question the rest of this site has never had to ask. Every gate here checks that a loop closes; this is a mechanism whose loops close perfectly and whose output is wrong, and the only thing that can say so is a measurement taken from outside the constraint set.
What has and has not been shown
Shown. A polynomial goes in; a mechanism comes out; the mechanism assembles, moves, and puts its tracing point on the curve to fourteen decimal places over an arc of its motion. The pipeline is mechanical throughout — no search, no fitting, no choice made by judgement — and the check at the end shares nothing with the construction.
Not shown, and the next four rungs are about it. That the machine works over its whole turn: it does not, and the arc is measured for every curve. That the machine has one assembly: it has sixteen, of which four draw the curve and four draw something else at the same closure residual. That the machine is a sensible way to draw a hyperbola: it is twenty bars where two crossed rods and a slot would do, and the cost rung is about how much worse that gets.
What has been shown is enough for one sentence, and it is the sentence the field exists to support: a curve given as an equation can be turned into a linkage by a procedure, and the linkage draws it exactly. Everything after this is the price.
What this makes readable
Essays that name this one as a prerequisite.
- Five bars for a line, four hundred for a quintic The curve as an equation
- Six things a compiled linkage is not Drawn wrongly
- The proof drew more than the curve The curve as an equation
About the same objects
Not linked from either essay — found by the objects both name.
- Six things a compiled linkage is not compiled linkage · loop closure · working arc
- Four bars and four pins loop closure · newton–raphson
- The solver was refusing a quarter of the sweep loop closure · newton–raphson
- What universality is worth compiled linkage · working arc
What links here
Essays that link to this one from their own argument.
- Five bars for a line, four hundred for a quintic The curve as an equation
- The price is on the equation The curve as an equation
- The proof drew more than the curve The curve as an equation
- A parallelogram carries an angle, and only so far The curve as an equation
- Prescribing a curve rather than points The problem backwards
- Doubling is cheaper than adding The curve as an equation
The objects this essay names
Each one links to every other essay that touches it.
Compiled linkageLoop closureNewton–RaphsonPrismatic pairSumming chainTracing pointWorking arc