Does light charge the quons? › Files cited on the page › check_section12_fable/
loss_length_fix.py
#!/usr/bin/env python3
"""r28: the loss length of a 3.2e20 eV proton against Aspden's level (share h1) under R-iii, done analytically.
My first version (recompute.py, last block) integrated h1 u^3/(1-u^2) numerically up to u_max = sqrt(1 - h1), which
rounds to 1.0 in floating point: the very cancellation the record warns about. Here s = 1 - u^2 is the variable."""
import math
alpha = 7.2973525693e-3; hbarc = 1.973269804e-7; E1 = 511e3; Ecr = 3.2e20; Mpc = 3.0857e22
for h1 in (4.8e-20, 5e-20):
# 2(n-1) = h1 u^2/(1-u^2) = h1 (1-s)/s ; capped at 1 where s = h1 (1 - 1/n^2 cannot exceed 1)
# int_0^{1} min(2(n-1),1) u du = (1/2) int_{s=h1}^{1} h1 (1-s)/s ds + (1/2) int_0^{h1} 1 ds
val = 0.5 * h1 * (math.log(1 / h1) - (1 - h1)) + 0.5 * h1
dEdx = alpha / hbarc * E1**2 * val
print(f"h1 = {h1:.1e}: log factor ln(1/h1) = {math.log(1/h1):.1f}; dE/dx = {dEdx:.2e} eV/m; loss length {Ecr/dEdx/Mpc:.2f} Mpc")
# with a resonance width: if the level's line has a relative width w (damping), the log is ln(1/w) instead; e.g. w = 1e-3 ->
for w in (1e-3, 1e-6):
val_w = 0.5 * h1 * (math.log(1 / w) - 1) + 0.5 * h1
dEdx_w = alpha / hbarc * E1**2 * val_w
print(f" if the line's relative width were {w:.0e}: {Ecr/dEdx_w/Mpc:.1f} Mpc")