Whittaker's History (1910), reviewed › The review's files › sim/whittaker/partC/
w7_weber_law.py
#!/usr/bin/env python3
"""W7.2 to W7.6: Weber's law of force (1846), its energy function, Helmholtz's
negative-mass objection (1870-73), the Weber-Kohlrausch constant (1856), the
co-moving-charge comparison with Maxwell-Lorentz, and Tisserand's Weber-type
gravitation applied to Mercury (1872).
Weber's law, in Gaussian form with c the speed of light (Whittaker p. 227,
read in the scan; Weber's own constant is c_W = c sqrt 2, p. 259 note):
F = (e e'/r^2) [1 - rdot^2/(2 c^2) + r rddot/c^2] (repulsive, along r)
Conserved energy (p. 228): T + V + (e e'/r)(1 - rdot^2/(2 c^2)).
Terms: e, e' the two charges; r their separation; rdot, rddot its first and
second time derivatives (relative motion only); T, V mechanical kinetic and
potential energies; c the ratio of units.
Run: OMP_NUM_THREADS=1 ~/aspden-review-venv/bin/python3 w7_weber_law.py
"""
import subprocess
import numpy as np
from scipy.integrate import solve_ivp
print("git HEAD:", subprocess.run(["git", "rev-parse", "HEAD"], cwd="/home/doug/aetherscience.org",
capture_output=True, text=True).stdout.strip())
c = 299792458.0
e_SI = 1.602176634e-19
m_e = 9.1093837139e-31
eps0 = 8.8541878188e-12
k_e = 1 / (4 * np.pi * eps0)
# ---------- 1. Weber's constant against c ----------
print("\n1. Weber and Kohlrausch (1856): c_W = 439450 x 10^6 mm/s (read at source: Weber 1871 p. 58;")
print(" Riemann, Werke p. 275 quotes the same figure).")
cW = 439450e6 * 1e-3 # m/s
cWK = cW / np.sqrt(2)
print(f" c_W = {cW:.4e} m/s; c_W/sqrt2 = {cWK:.4e} m/s; modern c = {c:.6e} m/s")
print(f" deviation of c_W/sqrt2 from c: {100*(cWK-c)/c:+.2f} %")
# Kirchhoff 1857 and Riemann 1858 quote 41950 and 41949 'Meilen' per second.
for name, mile in [("1/15 of a meridian degree (111.111 km)", 111111.1/15), ("geographic mile 7420.44 m", 7420.44)]:
print(f" 41950 Meilen/s with the Meile = {mile:.1f} m: {41950*mile:.4e} m/s ({name})")
print(f" Weber-Kohlrausch value in Meilen of 7407.4 m: {cWK/7407.4:.0f} Meilen/s (Riemann: 41949)")
print(" Fizeau 1849 in the same unit (Riemann p. 275): 41882 Meilen/s = "
f"{41882*7407.4:.4e} m/s; so in 1857 the two agreed to {100*(cWK/(41882*7407.4)-1):+.2f} %.")
# ---------- 2. Energy conservation under Weber's law (radial two-body motion) ----------
print("\n2. Energy conservation under Weber's law: numerical check [D]")
# Reduced one-dimensional problem: mu rddot = (ee'/r^2)(1 - rdot^2/(2c^2) + r rddot/c^2)
# -> rddot (mu - ee'/(r c^2)) = (ee'/r^2)(1 - rdot^2/(2c^2))
mu = m_e / 2 # reduced mass of two electrons
ee = k_e * e_SI**2 # e e' in SI-Gaussian hybrid: force = ee/r^2
rho = ee / (mu * c**2) # distance where Weber's effective mass vanishes
print(f" two electrons: effective radial mass mu - ee'/(r c^2) vanishes at r = {rho:.3e} m "
f"(= 2 classical electron radii)")
def rhs(t, y):
r, v = y
meff = mu - ee / (r * c**2)
a = (ee / r**2) * (1 - v**2 / (2 * c**2)) / meff
return [v, a]
r0 = 1e-10
sol = solve_ivp(rhs, [0, 2e-17], [r0, 0.0], rtol=1e-12, atol=1e-30, dense_output=True)
r, v = sol.y
E = 0.5 * mu * v**2 + (ee / r) * (1 - v**2 / (2 * c**2))
print(f" release from rest at r0 = {r0:.1e} m; after {sol.t[-1]:.1e} s r = {r[-1]:.3e} m, v = {v[-1]:.3e} m/s")
print(f" Weber energy (1/2) mu v^2 + (ee'/r)(1 - v^2/2c^2): initial {E[0]:.6e} J, final {E[-1]:.6e} J, "
f"relative drift {abs(E[-1]-E[0])/abs(E[0]):.1e}")
print(" The 'earliest critics' were wrong, as Whittaker says: the law has an energy function.")
# ---------- 3. Helmholtz's example: charge inside a charged hollow sphere ----------
print("\n3. Helmholtz's objection (Crelle 75, 1873; Whittaker p. 229) [D]")
# p = Int (sigma/r) cos^2(v,r) dS over the shell. Claim: independent of position
# inside, equal to Q/(3R). Check numerically at an off-centre point.
R = 1.0
Q = 1.0
sigma = Q / (4 * np.pi * R**2)
nth, nph = 400, 400
th = (np.arange(nth) + 0.5) * np.pi / nth
ph = (np.arange(nph) + 0.5) * 2 * np.pi / nph
TH, PH = np.meshgrid(th, ph, indexing="ij")
dS = R**2 * np.sin(TH) * (np.pi / nth) * (2 * np.pi / nph)
S = np.stack([R * np.sin(TH) * np.cos(PH), R * np.sin(TH) * np.sin(PH), R * np.cos(TH)], -1)
for x0 in ([0, 0, 0], [0.5, 0, 0], [0.3, 0.4, 0.5]):
for vhat in ([1, 0, 0], [0, 0, 1], [0.6, 0, 0.8]):
rv = np.array(x0) - S
rn = np.linalg.norm(rv, axis=-1)
cos2 = (rv @ np.array(vhat) / rn)**2
p = np.sum(sigma / rn * cos2 * dS)
print(f" point {x0}, direction {vhat}: p = {p:.5f} (Q/3R = {Q/(3*R):.5f})")
# Effective kinetic energy (1/2) v^2 (m - e Q/(3 R c^2)) in Gaussian form; runaway when
# e Q/R > 3 m c^2, i.e. when the potential of the shell exceeds 3 m c^2 / e.
phi_crit = 3 * m_e * c**2 / e_SI
print(f" Weber's effective mass of an electron inside a shell of like charge is negative when")
print(f" the shell's potential exceeds 3 m_e c^2 / e = {phi_crit/1e6:.3f} MV")
print(" Electron sources run inside negative high-voltage terminals of 2 to 5 MV")
print(" (Van de Graaff and Pelletron electron accelerators, MV electron microscopes) [S, from memory];")
print(" their electrons show no runaway. Weber's reply (1871, p. 58, read at source) was that")
print(" the runaway needs relative speeds above c_W, 'nirgends in der Natur nachzuweisen';")
print(" Helmholtz's shell version needs only a potential, not a speed.")
# ---------- 4. Co-moving charges: Weber against Maxwell-Lorentz ----------
print("\n4. Two charges moving side by side at the same velocity v (r perpendicular to v)")
print(" Weber: rdot = 0, rddot = 0, so F = e e'/r^2 at every v (relative motion only).")
print(" Maxwell-Lorentz in the laboratory frame: E_lab = gamma e'/r^2, B = v E/c^2,")
print(" F = e E_lab (1 - v^2/c^2) = (e e'/r^2) sqrt(1 - v^2/c^2) [S]")
for beta in (0.1, 0.5, 0.9, 0.99, 1.0):
g = 1 / np.sqrt(1 - beta**2) if beta < 1 else np.inf
print(f" v/c = {beta:4.2f}: Weber F/F_Coulomb = 1.000; Lorentz = {np.sqrt(1-beta**2):.3f} "
f"(E part x{g if g<np.inf else float('inf'):.3f}, magnetic part cancels fraction {beta**2:.3f} of it)")
print(" Aspden's rule for his continuum (charges in 'mutually parallel motion' at c relative to")
print(" the E-frame: magnetic attraction cancels electrostatic repulsion) is the v -> c limit of")
print(" the laboratory-frame Lorentz statement. It uses velocities relative to a frame, as")
print(" Clausius's law does (Whittaker p. 262), not Weber's relative velocity.")
# ---------- 5. Tisserand (1872): Weber-type gravity and Mercury ----------
print("\n5. Tisserand's Weber-type gravitation and Mercury's perihelion [D]")
# F = -(G M m / r^2) [1 - rdot^2/h^2 + 2 r rddot/h^2] (Whittaker p. 233, read in the scan)
# Central force: angular momentum L = r^2 thetadot conserved. Radial equation:
# rddot (1 + 2 G M/(r h^2)) = r thetadot^2 - (G M/r^2)(1 - rdot^2/h^2)
GM = 1.32712440018e20 # m^3/s^2, Sun (from memory, DE430)
AU = 1.495978707e11
a_merc = 0.387098 * AU
e_merc = 0.205630
T_merc = 87.9691 * 86400.0
orbits_per_century = 36525.0 * 86400.0 / T_merc
def precession_arcsec_per_century(h, n_orbits=20):
L = np.sqrt(GM * a_merc * (1 - e_merc**2))
rp = a_merc * (1 - e_merc)
vp = L / rp
def f(t, y):
r, rd, th = y
thd = L / r**2
rdd = (r * thd**2 - (GM / r**2) * (1 - rd**2 / h**2)) / (1 + 2 * GM / (r * h**2))
return [rd, rdd, thd]
def peri(t, y): # rdot = 0 crossing from negative to positive: perihelion
return y[1]
peri.direction = 1
sol = solve_ivp(f, [0, n_orbits * T_merc * 1.001], [rp, 0.0, 0.0], rtol=1e-11, atol=1e-6,
events=peri, max_step=T_merc / 200)
th_ev = sol.y_events[0][:, 2]
adv = np.diff(th_ev) - 2 * np.pi # advance per orbit, rad
return np.degrees(np.mean(adv)) * 3600 * orbits_per_century, np.std(adv)
gr = 6 * np.pi * GM / (c**2 * a_merc * (1 - e_merc**2))
gr_cent = np.degrees(gr) * 3600 * orbits_per_century
print(f" General relativity: 6 pi G M/(c^2 a (1-e^2)) = {gr_cent:.2f} arcsec/century [S]")
for label, h in [("h = c", c), ("h = c sqrt2 (Weber's own constant)", c * np.sqrt(2))]:
val, sd = precession_arcsec_per_century(h)
print(f" Weber-type law with {label}: {val:.2f} arcsec/century (ratio to GR {val/gr_cent:.3f})")
# Riemann's law (Whittaker p. 231): the full relative speed in place of rdot. For
# gravity the Lagrangian per unit mass is L = (1/2) v^2 (1 + 2GM/(r h^2)) + GM/r,
# p_theta = r^2 thetadot (1 + 2GM/(r h^2)) conserved.
def precession_riemann(h, n_orbits=20):
rp = a_merc * (1 - e_merc)
L0 = np.sqrt(GM * a_merc * (1 - e_merc**2))
g = lambda r: 1 + 2 * GM / (r * h**2)
ptheta = L0 * g(rp)
def f(t, y):
r, rd, th = y
thd = ptheta / (r**2 * g(r))
gp = -2 * GM / (r**2 * h**2) # dg/dr
# d/dt[rd g] = r thd^2 g + (1/2)(rd^2 + r^2 thd^2) gp - GM/r^2
rdd = (r * thd**2 * g(r) + 0.5 * (rd**2 + r**2 * thd**2) * gp - GM / r**2 - rd * gp * rd) / g(r)
return [rd, rdd, thd]
def peri(t, y):
return y[1]
peri.direction = 1
sol = solve_ivp(f, [0, n_orbits * T_merc * 1.001], [rp, 0.0, 0.0], rtol=1e-11, atol=1e-6,
events=peri, max_step=T_merc / 200)
th_ev = sol.y_events[0][:, 2]
adv = np.diff(th_ev) - 2 * np.pi
return np.degrees(np.mean(adv)) * 3600 * orbits_per_century
val_r = precession_riemann(c)
print(f" Riemann's law with h = c: {val_r:.2f} arcsec/century (ratio to GR {val_r/gr_cent:.3f})")
print(" Whittaker: 14'' with h = c (Tisserand), 3/8 of Le Verrier's 38'' excess; Riemann's law 3/4 (Levy 1890).")
print(" Modern: observed excess 42.98 +- 0.04''/century (from memory), matched by GR;")
print(" Weber's law at h = c gives one third of it.")