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

check_physics.py

In the investigation at sim/whittaker/check_A-C_fable/check_physics.py · last changed in commit 5963ea8, 22 November 2026 · 8,513 bytes


#!/usr/bin/env python3
"""Twenty-fifth reviewer: independent recomputation of the physics numbers the merged Whittaker page leans on
(Parts A to C).  numpy and scipy only.  Run: OMP_NUM_THREADS=1 ~/aspden-review-venv/bin/python3 check_physics.py
Labels: [S] standard physics, [D] derived here, [I] input, [M] modelling choice, "memory" = quoted from memory.
"""
import subprocess, math
import numpy as np
from scipy.integrate import quad, solve_ivp
from scipy.optimize import brentq

print('commit at run:', subprocess.run(['git', 'rev-parse', 'HEAD'], capture_output=True, text=True,
                                       cwd='/home/doug/aetherscience.org').stdout.strip())
c = 299792458.0; hbar = 1.054571817e-34; e = 1.602176634e-19; eps0 = 8.8541878188e-12
m_e = 9.1093837139e-31; G = 6.67430e-11; m_p = 1.67262192595e-27
hbar_c_eVm = 1.973269804e-7   # eV m [S]

print('\n1. Newton Query 21: an aether carrying light needs modulus/density = (c/v_sound)^2 times air\'s [S]')
print(f'   (c/343)^2 = {(c/343)**2:.3g}; Newton: above 700000^2 = 4.9e11 (source).')
rho = 143.5e3  # kg/m^3, register U07
print(f'   modulus for a wave at c in a medium of density {rho:.4g} kg/m^3: rho c^2 = {rho*c**2:.3g} Pa; steel 2e11 Pa: ratio {rho*c**2/2e11:.2g}')

print('\n2. Cavendish 1773 (Maxwell\'s edition, source): what a photon mass or an exponent 2+q leaves on the inner globe [D]')
a = 13.3/2*0.0254   # outer hemispheres radius, m
b = 12.1/2*0.0254   # inner globe radius, m
def shell_V_yukawa(Q, R, r, mu):
    # potential of a uniformly charged shell (radius R, charge Q) at radius r for the Yukawa kernel e^{-mu s}/s [S]
    if r < R: return Q*math.sinh(mu*r)*math.exp(-mu*R)/(mu*r*R)
    return Q*math.sinh(mu*R)*math.exp(-mu*r)/(mu*r*R)
def inner_fraction_yukawa(mu):
    # inner globe (b) and outer shell (a) connected: equal potentials.  Solve for Q_b/Q_a.
    # V_b = Q_b s_bb + Q_a s_ab ; V_a = Q_b s_ba + Q_a s_aa  with s the unit-charge potentials
    s_bb = shell_V_yukawa(1, b, b, mu); s_ab = shell_V_yukawa(1, a, b, mu)
    s_ba = shell_V_yukawa(1, b, a, mu); s_aa = shell_V_yukawa(1, a, a, mu)
    return (s_aa - s_ab)/(s_bb - s_ba)
def shell_V_power(Q, R, r, q):
    # potential kernel s^-(1+q) (force 1/s^(2+q)); shell integral: Q/(2 r R) * int_{|R-r|}^{R+r} s^{-q} ds  [S, Maxwell Treatise 74]
    lo, hi = abs(R - r), R + r
    if lo == 0: lo = 1e-12*R
    return Q/(2*r*R)*(hi**(1-q) - lo**(1-q))/(1-q)
def inner_fraction_power(q):
    s_bb = shell_V_power(1, b, b, q); s_ab = shell_V_power(1, a, b, q)
    s_ba = shell_V_power(1, b, a, q); s_aa = shell_V_power(1, a, a, q)
    return (s_aa - s_ab)/(s_bb - s_ba)
print(f'   geometry: a = {a*100:.2f} cm (outer), b = {b*100:.2f} cm (inner)')
for q in (1/50, 1/63):
    print(f'   exponent 2 + {q:.4f}: inner/outer charge = {inner_fraction_power(q):.4f} = 1/{1/inner_fraction_power(q):.1f}; ratio to q = {inner_fraction_power(q)/q:.3f}')
f_target = inner_fraction_power(1/50)
mu = brentq(lambda m: inner_fraction_yukawa(m) - f_target, 1e-3, 50)
print(f'   Yukawa mass giving the same inner fraction {f_target:.4f}: mu = {mu:.3f} /m -> m_gamma c^2 = hbar c mu = {hbar_c_eVm*mu:.2e} eV (Part A: 3.6e-7 eV)')
mu60 = brentq(lambda m: inner_fraction_yukawa(m) - 1/60, 1e-3, 50)
print(f'   for Cavendish\'s own bound 1/60: mu = {mu60:.3f} /m -> {hbar_c_eVm*mu60:.2e} eV; first-order formula mu^2 b (a+b)/6 would give fraction {mu60**2*b*(a+b)/6:.4f}')
mu72k = brentq(lambda m: inner_fraction_yukawa(m) - 1/72000, 1e-6, 50)
print(f'   Maxwell\'s 1/72000: mu = {mu72k:.3e} /m -> {hbar_c_eVm*mu72k:.1e} eV (Part A: 8e-9 eV)')

print('\n3. Aepinus\'s residual gravity against MICROSCOPE [D]')
ratio = G*m_p**2*4*math.pi*eps0/e**2
print(f'   gravity/Coulomb for two protons: {ratio:.3g}; a shortfall of each like-charge repulsion by {ratio/2:.2g} reproduces gravity between two H atoms')
ZA_Ti, ZA_Pt = 22/47.867, 78/195.084
eta = abs(ZA_Ti - ZA_Pt)/((ZA_Ti + ZA_Pt)/2)
print(f'   Z/A: Ti {ZA_Ti:.4f}, Pt {ZA_Pt:.4f}; a charge-counting gravity gives eta = {eta:.3f}; MICROSCOPE 2022 (memory) |eta| < ~4e-15: excluded by {eta/4e-15:.1e}')

print('\n4. Green\'s reflexion formula as printed by Whittaker on p. 154 (scan read) for vibrations in the plane of incidence [S]')
print('   (B/A)^2 = [(R+1)^2 (R - l1/l)^2 + (R-1)^4 m^2/l^2] / [(R+1)^2 (R + l1/l)^2 + (R-1)^4 m^2/l^2], R = rho2/rho1 = N^2,')
print('   with l1/l = N cos r / cos i and m/l = tan i (equal rigidity, Snell\'s law) [D reading of Green\'s notation]')
N = 1.5; R = N**2
for i_deg in (0.01, 20, 40, math.degrees(math.atan(N)), 70, 85):
    i = math.radians(i_deg); r = math.asin(math.sin(i)/N)
    L = N*math.cos(r)/math.cos(i); T = math.tan(i)
    num = (R+1)**2*(R-L)**2 + (R-1)**4*T**2; den = (R+1)**2*(R+L)**2 + (R-1)**4*T**2
    fres_p = (math.tan(i-r)/math.tan(i+r))**2 if i_deg < 89 else float('nan')
    print(f'   i = {i_deg:6.2f} deg: Green p-reflectance {num/den:.5f}; Fresnel tangent law {fres_p:.5f}')

print('\n5. Weber\'s law: the negative effective mass [D]')
print(f'   two electrons, reduced mass m/2: radial mass m/2 - e^2/(4 pi eps0 r c^2) vanishes at r = 2 r_e = {2*e**2/(4*math.pi*eps0*m_e*c**2):.3e} m')
print(f'   Helmholtz\'s shell (p = Q/3R): m - e Phi/(3 c^2) < 0 for Phi > 3 m c^2/e = {3*m_e*c**2/e/1e6:.3f} MV')

print('\n6. Weber-type gravity and Mercury: analytic check [S, D]')
GM = 1.32712440018e20; a_merc = 5.7909e10; e_merc = 0.205630; T_merc = 87.969*86400
gr = 6*math.pi*GM/(c**2*a_merc*(1-e_merc**2))*(100*365.25*86400/T_merc)*206264.806
print(f'   GR 6 pi GM/(c^2 a (1-e^2)) = {gr:.2f} arcsec/century; Weber-type (Tisserand, h = c) is one third: {gr/3:.2f}; Riemann two thirds: {2*gr/3:.2f} (Part C: 14.33, 28.65)')

print('\n7. Vacuum conductivity bound from the transparency of space [D]')
Z0 = 1/(eps0*c)
for name, D in (('GRB 090510, light-travel distance 7.5 Gly [M]', 7.5e9*9.4607e15), ('GRB 090510, comoving 10.3 Gly (charging quons 9.10)', 10.3e9*9.4607e15)):
    s_amp = 2/(Z0*D); s_int = 1/(Z0*D)
    print(f'   {name}: amplitude 1/e at sigma = {s_amp:.2e} S/m; intensity 1/e at sigma = {s_int:.2e} S/m (Part A: 7.5e-29)')

print('\n8. Cauchy\'s lattice dispersion [D]')
for lam in (400e-9, 700e-9):
    k = 2*math.pi/lam; a_mol = 0.35e-9
    print(f'   (ka)^2/24 at {lam*1e9:.0f} nm, a = 0.35 nm: {(k*a_mol)**2/24:.3g}')
print(f'   BK7 n(400)-n(700) = 0.0178 (memory): short by {0.0178/((2*math.pi/400e-9*0.35e-9)**2/24):.3g} at 400 nm, {0.0178/(((2*math.pi/400e-9*0.35e-9)**2 - (2*math.pi/700e-9*0.35e-9)**2)/24):.3g} on the difference')

print('\n9. Drude silver at 2.1 eV, hbar w_p = 9.0 eV, hbar gamma = 0.02 eV (memory) [S]')
w, wp, g = 2.1, 9.0, 0.02
epsc = 1 - wp**2/(w**2 + 1j*g*w); nc = np.sqrt(epsc)
print(f'   eps = {epsc:.3f}; n + i kappa = {nc:.3f}; R = {abs((nc-1)/(nc+1))**2:.4f}')

print('\n10. Aspden\'s law (PWE 2.12, source) for three geometries, force on ds\' with r from ds to ds\' [D]')
def aspden(ds, dsp, r):
    r = np.array(r, float); ds = np.array(ds, float); dsp = np.array(dsp, float); rn = np.linalg.norm(r)
    return (np.dot(dsp, r)*ds - np.dot(ds, r)*dsp - np.dot(ds, dsp)*r)/rn**3
def ampere(ds, dsp, r):
    r = np.array(r, float); ds = np.array(ds, float); dsp = np.array(dsp, float); rn = np.linalg.norm(r)
    return (3*np.dot(ds, r)*np.dot(dsp, r)/rn**5 - 2*np.dot(ds, dsp)/rn**3)*r
def grassmann(ds, dsp, r):
    r = np.array(r, float); ds = np.array(ds, float); dsp = np.array(dsp, float); rn = np.linalg.norm(r)
    return np.cross(dsp, np.cross(ds, r))/rn**3
for name, ds, dsp, r in (('parallel, side by side', [0,0,1], [0,0,1], [1,0,0]), ('collinear', [1,0,0], [1,0,0], [1,0,0]), ('perpendicular, ds along r', [1,0,0], [0,0,1], [1,0,0])):
    print(f'   {name:26s}: Aspden {aspden(ds,dsp,r)}, Ampere {ampere(ds,dsp,r)}, Grassmann {grassmann(ds,dsp,r)}  (negative x = attraction toward ds)')
print('   Aspden\'s (2.17) with F\' = (v.v\')/r^2 (k e e\' = 1): is it a function of the relative velocity only? [D]')
def aspden_v(v, vp, r, mratio=1.0):
    v = np.array(v, float); vp = np.array(vp, float); r = np.array(r, float); rn = np.linalg.norm(r)
    return (np.dot(vp, r)*v - mratio*np.dot(v, r)*vp - np.dot(v, vp)*r)/rn**3
print(f'   v = (0,0,1), v\' = (1,0,0), r = (1,0,0): F = {aspden_v([0,0,1],[1,0,0],[1,0,0])}; the same with u = (0.5,0,0) added to both: F = {aspden_v([0.5,0,1],[1.5,0,0],[1,0,0])}')
print('   so a common velocity of both charges changes the force: the velocities are referred to a frame, not to each other (Weber\'s law depends on r, rdot, rddot only) [D]')
print('done')