Generator

One step response, computed twice: from the poles, and by walking the network forward

A damping ratio of 0.22, so the overshoot is 49.2%. The two curves are drawn on top of each other; the panel below is the difference between them, which is the trapezoidal rule's error at 500 steps and reaches 1.70e-3 V.
One step response, computed twice: from the poles, and by walking the network forwardA damping ratio of 0.22, so the overshoot is 49.2%. The two curves are drawn on top of each other; the panel below is the difference between them, which is the trapezoidal rule's error at 500 steps and reaches 1.70e-3 V.00.50011.50024output (volts), for a 1 V step inthe final valuesolid: from the poles · dashed: stepped forwardtime (milliseconds)gap between the two routes (volts)100n10µ100µ1m10m100m1solved, then checked — residues against 500 trapezoidal stepsthe numerical route is out by 1.7e-3 V

Drawn above at its default parameters, which is almost never how an essay calls it. A placement states the numbers that essay is arguing about, so the figure a reader meets is about that argument rather than about the generator — 98% of the placements on this site pass one, and the phase that raised that number from 12% found eight captions describing a figure the page was not showing.

At those defaults the edge it states is the numerical route is out by 1.7e-3 V — the right-hand slot of the caption strip, which on this site is never used for anything else, and which is read back out of the drawing above rather than out of the code that wrote it. It belongs to Before the steady state, which is to say a change to it is a change to lib/figures/transients.js. It takes a slider on time steps with 7 settings, and every one of them has passed the same assertions as the frame above — a figure whose circuit stops doing what its caption says at any setting stops the build.

Called by 9 essays

which is the blast radius of changing it

One step, computed twice

A step response from the poles is exact. The same step walked forward in time is not, and the difference between them is the trapezoidal rule's own error rather than anything about the circuit. It falls by a factor of four every time the step is halved, which is a claim about a method and can be watched.

Before the steady state

The cliff before the fastest settling

Settling time against damping is not a smooth curve with a minimum. It falls by a third in one step of a sweep of five thousandths, and the fastest damping sits on the edge of that step — so a design a hundredth of a damping ratio to the left of the optimum settles forty-eight per cent slower, with a waveform that looks no different.

Before the steady state

The half that never arrives

Charging a capacitor from a step loses exactly as much energy as it stores, and the resistance it is lost in does not appear in the answer — the same 12.5 microjoules through ten ohms and through a hundred kilohms, to nine figures. Drive the same network with a ramp instead and the loss falls as two time constants over the ramp, with no floor beneath it at all.

Before the steady state

The corner that says nothing about an edge

An AC-coupled input is sold on a low-frequency corner, and a corner is a statement about steady sinusoids. What an instrument is usually shown is a pulse, and for a pulse the number is a sag: a hundred-millisecond pulse through a 0.159 hertz corner comes out 9.5 per cent shorter than it went in. A one per cent flat top needs a pulse rate 625 times the corner, which is a constant with no component in it — and above fifty per cent duty an AC-coupled pulse never reaches half its own height at all.

Measurement, which is a circuit on a circuit

Two numbers without solving for the waveform

Where a step response starts and where it ends are two limits of the transfer function, and neither needs the waveform. Both are exact here — 1.000000000 volts at the end and the whole step at the first instant — and one of them is a lie waiting to happen: take the damping to zero and the final-value theorem still returns 1.000000 for a response that swings between 0 and 2 for ever. Its condition is not on the transfer function but on where the poles are, and the practical condition is narrower still: at five ohms the poles are safely in the left half-plane and sixty cycles is not enough time.

Before the steady state

The period a delay lengthens

Feed a comparator's output back through a resistor to the capacitor on its own input and the two thresholds stop defending a decision and start setting a period. The closed form is two RC times the log of one plus beta over one minus beta, and a marched circuit recovers it as the step shortens. A comparator that responds fifty nanoseconds late does not add fifty nanoseconds to each half cycle: it adds 4/(1+beta) times the delay to the period, 2.65 here against the 2 that counting it twice gives, because during the delay the capacitor keeps going the way it was going.

Circuits that do a job, and the range they do it over

The gap a derivative needs

The derivative of a pole is exact and has no step size in it, and beside the formula sits a sentence nobody had measured: it divides by a quantity that vanishes when two poles meet. Driven together, the sensitivity climbs as the reciprocal of the gap — fitted exponent −1.0000, the product a constant 1.00000 times the natural frequency — while the largest change it still describes falls as the gap *squared*. A one per cent capacitor is outside first order once the poles are 3194 radians a second apart, which is an ordinary critically damped design.

Before the steady state

The ringing that belongs to the rule

The trapezoidal rule is stable for every stable circuit and every step size, and it is not damping. March a one-microsecond pole with twenty-microsecond steps and its node reads 1.818, 0.331, 1.548, 0.552 volts — an oscillation at half the stepping rate, its distance from the final volt multiplied by exactly −0.8182 every step, taking twenty-three steps to fall below one per cent. The slow node that pole drives is right to 1.2 × 10⁻⁵ V at a millisecond. One backward-Euler step at the discontinuity cuts the first swing from 0.818 V to 0.048 and two to 0.0023, because backward Euler multiplies the same error by 1/(1 + h/τ) and the trapezoidal rule by (1 − h/2τ)/(1 + h/2τ), which approaches −1.

Before the steady state

The phase the rule loses

An inductor and a capacitor with no resistance ring for ever, and two ways of marching them disagree about how. The trapezoidal rule keeps the amplitude exactly — its factor per step has a magnitude of one — and loses phase instead: 2π − 2N·atan(π/N) a cycle, 2.918° at twenty steps a cycle, so ten cycles later it is 29.2° behind the circuit. Backward Euler keeps 0.3901 of the amplitude a cycle at the same step, and after ten cycles 0.0082 per cent of the ringing is left, in a circuit that has no loss. The two errors fall at different rates: the trapezoidal rule's phase as the square of the steps a cycle, backward Euler's amplitude as the first power. A hundred cycles to within one per cent needs 182 steps a cycle of one and 196,404 of the other.

Before the steady state

Every generator