The droop of a load step in time from the rail's impedance at the load (R-E14):
a current step of `step` A rising in `rise` s, the voltage it takes off the rail
there.
For a causal impedance Z(w) the step response (V per A) is h(t) = R0 + (2 / pi)
int_0^inf g(w) cos(w t) dw with g = Im Z / w (its inductance; R0 = Re Z at the
lowest frequency, the DC path), and the ramp's response v(t) = step / rise (H(t)
- H(t - rise)), H = int_0^t h. With g linear in w between the samples, each
segment's integral is exact through the sine integral, a(Si(w2 t) - Si(w1 t)) +
b / t (cos(w1 t) - cos(w2 t)), so the samples' log spacing and a long t cost no
accuracy; below the lowest frequency g is held at its value there, above the
highest at its value there (the mounting's inductance). It is the impedance as
solved, between the frequencies it was solved at: a resonance between two
samples is as sharp as they show it.
t, v = droop(f, Z, step=1.0, rise=1e-9) # v: the rail's drop, V (positive:
# down)