# log: s06_hp_hagedorn
# started (UTC): 2026-11-19T02:49:16+00:00
# python 3.12.14 on Darwin arm64
# argv: s06_hp_hagedorn.py
== (1) mode enumeration and root of z(x) = 1
  modes n=2j+1 <=   1: x_root = 0.08855360600856713905874  (x_root - (7-4 sqrt3) = +1.676e-02)  T = 0.4125162049
  modes n=2j+1 <=   2: x_root = 0.07357432542789401615938  (x_root - (7-4 sqrt3) = +1.778e-03)  T = 0.3832211739
  modes n=2j+1 <=   3: x_root = 0.07200237300618998614101  (x_root - (7-4 sqrt3) = +2.056e-04)  T = 0.3800754994
  modes n=2j+1 <=   4: x_root = 0.07181910322780924433677  (x_root - (7-4 sqrt3) = +2.233e-05)  T = 0.3797076953
  modes n=2j+1 <=   6: x_root = 0.07179698930409392241455  (x_root - (7-4 sqrt3) = +2.196e-07)  T = 0.3796632996
  modes n=2j+1 <=   8: x_root = 0.07179677156898325830606  (x_root - (7-4 sqrt3) = +1.844e-09)  T = 0.3796628625
  modes n=2j+1 <=  12: x_root = 0.07179676972459152399042  (x_root - (7-4 sqrt3) = +1.007e-13)  T = 0.3796628588
  modes n=2j+1 <=  16: x_root = 0.0717967697244908304288  (x_root - (7-4 sqrt3) = +4.539e-18)  T = 0.3796628588
  modes n=2j+1 <=  24: x_root = 0.07179676972449082589021  (x_root - (7-4 sqrt3) = +6.872e-27)  T = 0.3796628588
  modes n=2j+1 <=  32: x_root = 0.07179676972449082589021  (x_root - (7-4 sqrt3) = +5.885e-36)  T = 0.3796628588
  modes n=2j+1 <=  48: x_root = 0.07179676972449082589021  (x_root - (7-4 sqrt3) = -1.284e-38)  T = 0.3796628588
  modes n=2j+1 <=  64: x_root = 0.07179676972449082589021  (x_root - (7-4 sqrt3) = -1.284e-38)  T = 0.3796628588
  modes n=2j+1 <=  96: x_root = 0.07179676972449082589021  (x_root - (7-4 sqrt3) = -1.284e-38)  T = 0.3796628588
  [PASS] x_H from mode sum (n<=200) vs 7-4 sqrt3: computed 0.07179676972  paper 0.07179676972  |diff| 0 (tol 1e-30)  [HP] eq. (xH)
  [PASS] x_H: computed 0.07179676972  paper 0.0718  |diff| 3.23e-06 (tol 5e-06)  [HP] eq. (xH)
  [PASS] beta_0 = -ln x_H: computed 2.633915794  paper 2.6339158  |diff| 6.15e-09 (tol 5e-08)  [HP] eq. (xH)
  [PASS] T_H^(0) = 1/ln(7+4 sqrt3): computed 0.3796628588  paper 0.37966  |diff| 2.86e-06 (tol 5e-06)  [HP] eq. (TH0)
  [PASS] z_B: mode sum vs closed form at x=0.123: computed 1.357732816  paper 1.357732816  |diff| 0 (tol 1e-30)  [HP] eq. (zBzF)
  [PASS] z_F: mode sum vs closed form at x=0.123: computed 1.023243206  paper 1.023243206  |diff| 0 (tol 1e-30)  [HP] eq. (zBzF)
  [PASS] z_B+z_F vs 2y^2(3-y)/(1-y)^3 at x=0.123: computed 2.380976022  paper 2.380976022  |diff| 0 (tol 1e-30)  [HP] eq. (z)
== (2) closed forms (sympy, exact)
  numerator of z-1: -(y + 1)*(y**2 - 4*y + 1);  roots of y^3-3y^2-3y+1: [2 - sqrt(3), sqrt(3) + 2]
  x z'(x) at x_H = 3/2   (paper: 3/2)
  [PASS] x z'(x) at x_H: computed 1.5  paper 1.5  |diff| 0 (tol 1e-14)  [HP] eq. (slope)
  [PASS] cubic factorisation (y+1)(y^2-4y+1) = y^3-3y^2-3y+1: computed 0  paper 0  |diff| 0 (tol 1e-15)  [HP] section 2.3
  [PASS] w'(beta_0): computed 1.5  paper 1.5  |diff| 0 (tol 1e-25)  [HP] eq. (target) text
  [PASS] w''(beta_0) = -(3/2) sqrt3: computed -2.598076211  paper -2.598076211  |diff| 0 (tol 1e-20)  [HP] eq. (target) text
  [PASS] A_2(x_H) = 1 - z_B(x^2) + z_F(x^2): computed 0.9742785793  paper 0.9742786  |diff| 2.07e-08 (tol 5e-08)  [HP] eq. (master) text
== (3) one-loop coefficient d_1
  [PASS] d_1(x_H): computed 1.5  paper 1.5  |diff| 0 (tol 1e-25)  [HP] eq. (d1H)
  [PASS] d d_1/d beta at beta_0 = -(8 sqrt3 - 9): computed -4.856406461  paper -4.856406461  |diff| 0 (tol 1e-20)  [HP] eq. (target) text
  d_1 series in y: 33*y**4 + 240*y**5 + 2852*y**6/3 + 2768*y**7 + O(y**8)
  [PASS] leading coefficient of d_1 (y^4 = x^2): computed 33  paper 33  |diff| 0 (tol 1e-12)  [HP] section 4.3 ('begins 33 x^2')
  [PASS] (1+y_H)^2 = 6 y_H: computed 1.607695155  paper 1.607695155  |diff| 0 (tol 1e-30)  [HP] section 4.3
  [PASS] (1-y_H)^2 = 2 y_H: computed 0.5358983849  paper 0.5358983849  |diff| 0 (tol 1e-30)  [HP] section 4.3
  [PASS] 1-8y_H+2y_H^2 = -1: computed -1  paper -1  |diff| 0 (tol 1e-30)  [HP] section 4.3
  [PASS] one-loop shift: T_H/T_H0 - 1 = 2 g^2 (coefficient): computed 2  paper 2  |diff| 0 (tol 1e-30)  [HP] eq. (TH1)
== (4) Harmark-Wilhelm coefficient and the target d_4 ([HP] eq. HW, target, d4target)
  [PASS] two-loop T_H coefficient, closed form: computed -11.50399217  paper -11.50399  |diff| 2.17e-06 (tol 5e-06)  [HP] eq. (HW)
  [PASS] target term w' beta_2: computed 61.25431478  paper 61.25  |diff| 0.00431 (tol 0.006)  [HP] section 8.3
  [PASS] target term w'' beta_1^2/2: computed -36.04837191  paper -36.05  |diff| 0.00163 (tol 0.006)  [HP] section 8.3
  [PASS] target term 2 beta_1 d_1: computed -15.80349476  paper -15.8  |diff| 0.00349 (tol 0.006)  [HP] section 8.3
  [PASS] target term 2 beta_0 beta_1 d d_1: computed 134.7655203  paper 134.77  |diff| 0.00448 (tol 0.006)  [HP] section 8.3
  [PASS] target term 2 beta_0^2 C_41: computed 115.9095847  paper 115.91  |diff| 0.000415 (tol 0.006)  [HP] section 8.3
  [PASS] d_4(x_H) target: computed -10.72865875  paper -10.7287  |diff| 4.12e-05 (tol 6e-05)  [HP] eq. (d4target)
  [PASS] beta_2 = beta_0 (4 + 11.50399): computed 40.83620985  paper 40.83620413  |diff| 5.73e-06 (tol 0.0001)  [HP] section 8.3
  [PASS] direct d_4 sum -0.156-5.65-0.017-4.476-0.41: computed -10.709  paper -10.71  |diff| 0.001 (tol 0.005)  [HP] eq. (d4)
  numerical g^4 coefficient of T_H/T_H0 from the zero of m_1^2: ['-11.3062803', '-11.4049512', '-11.4544231'] -> Richardson -11.5038951
  [PASS] g^4 coefficient of T_H recovered from m_1^2 = 0 (closure of eq. target): computed -11.5038951  paper -11.50399217  |diff| 9.71e-05 (tol 0.002)  [HP] eq. (m1-twoloop), (target)
== (5) temperature sweep and Hagedorn growth
  z_1(x_H) = +1.0000000   mass^2 of u_1: (1-z_n)/n = +0.0000000
  z_2(x_H) = +0.0257214   mass^2 of u_2: (1-z_n)/n = +0.4871393
  z_3(x_H) = +0.0023387   mass^2 of u_3: (1-z_n)/n = +0.3325538
  z_4(x_H) = +0.0001573   mass^2 of u_4: (1-z_n)/n = +0.2499607
  [PASS] m_2^2 = (1 - z_2)/2 at x_H ('about 1/2'): computed 0.4871392896  paper 0.5  |diff| 0.0129 (tol 0.02)  [HP] section 3.1
  confined partition function prod 1/(1-z_n): first coefficients in y: [1, 0, 6, 16, 72, 240, 928, 3456, 12954]
  ratio of consecutive coefficients at y^90: 3.732051   (1/y_H = 2+sqrt3 = 3.732051)
  [PASS] growth ratio of state counting at y^90 vs 1/y_H: computed 3.732050808  paper 3.732050808  |diff| 0 (tol 0.02)  [HP] section 2.3 (Hagedorn growth)
  [PASS] first coefficients of Z: 6 scalars at y^2: computed 6  paper 6  |diff| 0 (tol 0)  [HP] Table 1
SUMMARY: 32/32 checks pass
# finished (UTC): 2026-11-19T02:49:18+00:00  status: ok
