Whittaker's History (1910), reviewed › The review's files › sim/whittaker/partF/

lorentz_larmor_transformation.py

In the investigation at sim/whittaker/partF/lorentz_larmor_transformation.py · last changed in commit c837d61, 22 November 2026 · 4,725 bytes


#!/usr/bin/env python3
"""Whittaker review, Part F (Chapter XII), entries W12.9, W12.10, W12.13 and W12.14.

The FitzGerald-Lorentz contraction, Lorentz's local time (1895), the Larmor-Lorentz
transformation in Whittaker's hyperbolic form (p. 441), and the slowing of moving clocks
tested against the fast-ion Ives-Stilwell experiment of Botermann et al. (2014).

Run: cd /home/doug/aetherscience.org && OMP_NUM_THREADS=1 ~/aspden-review-venv/bin/python3 \
     aspden-investigation/sim/whittaker/partF/lorentz_larmor_transformation.py
"""
import subprocess
import numpy as np

print("git HEAD:", subprocess.run(["git", "rev-parse", "HEAD"], cwd="/home/doug/aetherscience.org",
                                  capture_output=True, text=True).stdout.strip())

c = 299792458.0
w = 30.0e3                      # m/s, Whittaker's round figure (p. 433)
beta = w / c
gamma = 1 / np.sqrt(1 - beta**2)

print("\n1. FitzGerald's contraction at the Earth's speed (Whittaker p. 433)")
print(f"   w/c = {beta:.3e};  w^2/c^2 = {beta**2:.3e}  ('one hundred-millionth')")
print(f"   exact factor sqrt(1 - w^2/c^2) = 1 - {1 - 1/gamma:.4e}")
print(f"   Whittaker's first-order form 1 - w^2/2c^2 = 1 - {beta**2/2:.4e};  difference from exact = {abs((1 - beta**2/2) - 1/gamma):.1e}")
l = 11.0
print(f"   arm of {l} m: shortening w^2 l / 2c^2 = {beta**2 * l / 2 * 1e9:.1f} nm; the uncompensated time difference w^2 l / c^3 = {beta**2 * l / c:.2e} s")
print(f"   Larmor 1900, p. 176 (read at source): Earth's diameter shortened 'about 6 1/2 centimetres' -> {1.2742e7 * beta**2 / 2 * 100:.1f} cm here (with 30 km/s)")

print("\n2. Lorentz's local time (Versuch 1895, section 31 'Einfuehrung der Ortszeit'; Whittaker p. 434: t = t1 + w x1/c^2)")
x1 = 1.0
print(f"   at x1 = 1 m the local time differs from t by w x1 / c^2 = {w * x1 / c**2:.2e} s")
print(f"   the exact (1904) form t' = gamma (t - w x / c^2) differs from it only by the factor gamma = 1 + {gamma - 1:.2e}: second order, as Whittaker says (p. 435)")

print("\n3. Whittaker's hyperbolic form (p. 441): x = x1 cosh a + c t1 sinh a, t = t1 cosh a + (x1/c) sinh a, tanh a = w/c")
a = np.arctanh(beta)
print(f"   cosh a = {np.cosh(a):.12f} = gamma = {gamma:.12f};  sinh a = {np.sinh(a):.6e} = gamma w/c = {gamma*beta:.6e}")
# invariance check on random events
rng = np.random.default_rng(1)
X = rng.normal(size=(5, 2))  # columns: x1 (light-seconds), t1 (s)
x = X[:, 0] * np.cosh(a) + X[:, 1] * np.sinh(a)
t = X[:, 1] * np.cosh(a) + X[:, 0] * np.sinh(a)
inv_before = X[:, 0]**2 - X[:, 1]**2
inv_after = x**2 - t**2
print(f"   x^2 - (ct)^2 preserved to {np.max(np.abs(inv_after - inv_before)):.1e} (units c = 1) on five random events")
print("   The contraction (p. 443): x'' - x = (x'1 - x1) sqrt(1 - w^2/c^2); a clock fixed in the moving frame (x1 const):")
print(f"   dt = cosh a dt1 = gamma dt1 -> the moving clock runs slow by the same factor, 1 - {1 - 1/gamma:.3e} at 30 km/s.")
print("   Whittaker draws the contraction from the transformation but not the slowing of clocks; Larmor 1900 p. 174 does")
print("   ('the scale of time is enlarged in the ratio epsilon^(1/2)', read at source).")

print("\n4. The slowing of clocks against measurement [I: Botermann et al. 2014, abstract read at source]")
b = 0.338
g = 1 / np.sqrt(1 - b**2)
print(f"   7Li+ ions at beta = {b}: gamma = {g:.6f}, so a moving clock runs slow by {100*(1 - 1/g):.3f}%")
print("   Ives-Stilwell quantity: with lasers parallel and antiparallel to the beam, nu_p nu_a / nu_0^2 = 1 exactly in")
print("   special relativity (gamma^2 (1 - beta^2) = 1). Botermann et al.: the relation between gamma and beta verified 'to within 2.3 ppb'.")
print(f"   Lorentz's 1895 first-order local time alone (no gamma) would predict nu_p nu_a / nu_0^2 = 1 - beta^2 = {1 - b**2:.4f}: off by {b**2:.3f}, i.e. {b**2/2.3e-9:.1e} times the test's precision.")
print("   Without any slowing of clocks the test would see a 12.9% effect; special relativity and the Larmor-Lorentz")
print("   transformation (W12.13) pass it; the Galilean aether and the 1895 local time alone fail it.")

print("\n5. Ives and Stilwell 1938 (from memory): hydrogen canal rays at beta ~ 0.005")
bi = 0.005
print(f"   second-order shift beta^2/2 = {bi**2/2:.2e} of the line frequency; for H-beta (486.1 nm) that is {486.1e-9 * bi**2 / 2 * 1e12:.1f} pm")
print("   They measured the displacement of the centre of gravity of the two Doppler-shifted lines and found the predicted sign and size.")

print("\n6. Equivalence of forms: Lorentz 1904 (k, l = 1), Einstein 1905 and Whittaker's p. 441 are the same mapping")
k = gamma
print(f"   Lorentz 1904 (read at source): x' = k l x, t' = (l/k) t - k l (w/c^2) x with l = 1; k = {k:.12f} = cosh a. Identical.")