This is a read-only demonstration of PhysicsHive on an example project. You can open every page and type in every form, but nothing is saved. How this works
PhysicsHivependulum

Session record · file

computations/C-S1-2_R-S1-1.md
Header
id: C-S1-2_R-S1-1
kind: review
target: C-S1-2
supports: [CL-S1-1]
claim: 'The period of the simple pendulum at amplitude $\theta_0$ is $T = T_0\,(1 + \theta_0^2/16 + O(\theta_0^4))$ with $T_0 = 2\pi\sqrt{L/g}$, so $c_2 = 1/16$.'
verdict: confirmed
by: {kind: agent}
session: S1
date: 2026-11-24

Summary

Reviewed C-S1-2. Verdict: confirmed. Wrote computations/C-S1-2_R-S1-1.md.

Result

I re-ran the script from a copy outside the workspace. It reproduces C-S1-2.out line for line and C-S1-2.periods.csv byte for byte. I then checked \(c_2 = 1/16\) by routes that the script does not use, and all of them pass. The first expands \((2/\pi)K\) as the hypergeometric series \({}_2F_1(\tfrac12,\tfrac12;1;\sin^2(\theta_0/2))\); it gives \(1/16\), \(11/3072\), \(173/737280\), \(22931/1321205760\) and \(1319183/951268147200\), the standard values through \(\theta_0^{10}\). The second expands the period integral \(4\int_0^{\theta_0}d\theta/\sqrt{2(\cos\theta-\cos\theta_0)}\) directly, with no elliptic function; it gives \(1/16\), \(11/3072\) and \(173/737280\). The third is a 50-digit tanh-sinh quadrature of that same integral at the 13 amplitudes, which matches the CSV's mpmath column to within \(5\times10^{-20}\), the precision of the stored strings. The fourth is an implicit Radau ODE integration in the original variable \(\theta\), which matches to within \(2.7\times10^{-15}\). A 3-point Richardson fit on quadrature data at 0.001, 0.002 and 0.004 rad gives \(c_2 = 0.0625000000000000000\) to 20 digits and \(c_4 = 0.00358072916667 = 11/3072\). I also recomputed the CSV's derived columns (relative error of the second-order formula, residual\(/\theta_0^4\)) independently, and they agree. The checks of dimensions, evenness in \(\theta_0\), the \(\theta_0\to0\) limit and the \(\theta_0\to\pi\) logarithmic limit all pass. I found no remark that weakens or breaks the result. The only remark is cosmetic: a stale flag in the artefact about the letter \(m\).

Flags

  • The artefact's flag (C-S1-2.md, line 19) says that conventions.md uses \(m\) for both the mass and the elliptic parameter. The current conventions.md writes the mass as \(M\) and keeps \(m\) for the parameter \(m=k^2\), so this flag no longer applies and needs no action.

Tests

Check Outcome Detail
Re-run of C-S1-2.py (scratch copy) pass Runs in about 1 s. The output is identical to C-S1-2.out except for the printed relative path of the CSV, and the CSV is byte-identical.
Dimensions pass \(T_0 = 2\pi\sqrt{L/g}\) is a time; \(c_2\) and \(\theta_0\) (rad) are dimensionless. An ODE run in physical units (\(L=2\), \(g=9.81\), \(\ddot\theta = -(g/L)\sin\theta\)) gives \(T/(2\pi\sqrt{L/g}) = 1.066334245579964\) at \(\theta_0=1\), equal to the CSV value \(1.0663342455799630\). The mass does not enter.
Symmetry \(\theta_0\to-\theta_0\) pass All odd coefficients vanish symbolically, both in the script and in my hypergeometric series. Radau gives \(T(+1)/T_0 = 1.0663342455799634\) and \(T(-1)/T_0 = 1.0663342455799625\).
Limit \(\theta_0\to0\) pass \(T\to T_0\), and \(T/T_0 - 1 = 6.25\times10^{-18}\) at \(\theta_0 = 10^{-8}\) (script output), which is \(\theta_0^2/16\).
Limit \(\theta_0\to\pi\) pass \(T/T_0 \to (2/\pi)\ln(4/\cos(\theta_0/2))\): \(7.235874068\) against \(7.235874065\) at 3.1415 rad (script output, consistent with \(K(k)\sim\ln(4/k')\)).
\(c_2\), \(c_4\) from \({}_2F_1(\tfrac12,\tfrac12;1;\sin^2(\theta_0/2))\) (independent SymPy expansion) pass Gives \(1, 0, 1/16, 0, 11/3072, 0, 173/737280, 0, 22931/1321205760, 0, 1319183/951268147200\). These match the standard pendulum series through \(\theta_0^{10}\) and the artefact through \(\theta_0^8\).
\(c_2\) from the period integral, no elliptic function pass I substituted \(\theta = \theta_0\sin\psi\), expanded the integrand in \(\theta_0\) as a polynomial in \(\sin\psi\) and integrated with Wallis' formula. This gives \(c_0=1\), \(c_2=1/16\), \(c_4=11/3072\) and \(c_6=173/737280\).
Lindstedt–Poincaré coefficients (hand check of S5) pass \(\Omega = 1 - \theta_0^2/8 + 7\theta_0^4/1536 + \dots\) gives \(\Omega^{-1/2} = 1 + \theta_0^2/16 + (3/512 - 7/3072)\theta_0^4 = 1 + \theta_0^2/16 + 11\theta_0^4/3072\).
Exact \(T/T_0\) by 50-digit quadrature against the CSV mpmath column (13 amplitudes) pass The integrand is in product form to avoid cancellation. The largest difference is \(4.7\times10^{-20}\), at the 20-digit precision of the stored strings.
Exact \(T/T_0\) by Radau ODE in \(\theta\) (rtol \(10^{-12}\)) against the CSV pass The largest difference is \(2.7\times10^{-15}\), at 3 rad.
CSV derived columns recomputed pass relerr_second_order agrees exactly. residual_over_theta0_4 agrees to within \(2\times10^{-18}\).
\(c_2\) from numerical data alone (3-point Richardson, quadrature at 0.001, 0.002, 0.004 rad) pass \(c_2 = 0.062500000000000000001\) and \(c_4 = 0.00358072916667\) (\(11/3072 = 0.00358072916667\)).
Numbers quoted in C-S1-2.md against .out pass I checked these numbers against the output: the agreements within \(1.3\times10^{-15}\) and \(1.3\times10^{-14}\), the slope 4.0014, the fitted \(c_2 = 0.062500003309\), the Richardson value \(0.062499994\), the relative errors at 0.1, 1, 2 and 3 rad, and the ratio of at least 6000 (it is \(3.58\times10^{-11}/5.3\times10^{-15}\approx 6800\)). The gap between residual\(/\theta_0^4\) at 0.01 rad and \(c_4\) is \(2.3\times10^{-8}\), which equals \(c_6\theta_0^2 = 2.35\times10^{-8}\), as expected.

Remarks

  • [cosmetic] C-S1-2.md, ## Flags, line 19: the flag says that conventions.md uses \(m\) for the mass (line 13). The current conventions.md uses \(M\) for the mass and states that \(m\) is kept for the elliptic parameter, so the flag is stale.
  • [cosmetic] C-S1-2.md, \(c_2\) from the numerical data alone: the fitted values carry errors of \(3\)–\(6\times10^{-9}\). The artefact attributes these errors to truncation of the fit, not to the integration, and my own extraction confirms this: at smaller amplitudes with a 3-term Richardson fit, \(1/16\) is recovered to 20 digits. Nothing to change.

Verdict

Confirmed. The computation establishes \(T = T_0(1 + \theta_0^2/16 + O(\theta_0^4))\), so \(c_2 = 1/16\), by two symbolic routes and several numerical routes. The symbolic routes are the elliptic-integral series and a Lindstedt–Poincaré expansion that uses no elliptic integral. The numerical routes are mpmath, SciPy, the AGM and a direct ODE integration. The script re-runs and reproduces its recorded output and data exactly. My independent checks reach \(1/16\) by routes the script does not use: the hypergeometric series, a direct expansion of the period integral, 50-digit quadrature and an implicit ODE solver. They also confirm \(c_4 = 11/3072\) and the higher coefficients against standard values. Since the series is analytic and even in \(\theta_0\), the \(O(\theta_0^4)\) remainder is justified. The only remark is cosmetic.