Verification scripts for L. D. Musa, "The Forgotten Eleventh System: Separating Laplace's Equation in Confocal Paraboloidal Coordinates." These scripts check algebraic identities in Appendices A and B, the worked example with nonzero separation constants in Section 6, the rim-overshoot numbers and figure in Sec. 6.4, and the far-field decay law of Section 7 and Appendix C. They accompany the source deposit as ancillary files. Requirements ------------ Python 3, SymPy, and mpmath. The rim-overshoot scripts also need NumPy, SciPy, and (for make_fig_rim.py) Matplotlib. Tested with Python 3.13.5, SymPy 1.14.0, mpmath 1.3.0, NumPy 2.5.4, and SciPy 1.18.1. Only check_11_mf664.py, check_v2_arscott_example.py, asymptotics_bc.py, rigor_checks.py, and rigor_checks_twoterm.py require mpmath. build_series_par.py, rim_overshoot.py, fd_rim_slice.py, and fd_check.py require NumPy and SciPy. make_fig_rim.py and make_fig_farfield.py require Matplotlib as well. How to run ---------- From this directory: python3 check_appendix_staeckel.py python3 check_08_eisenhart_map.py python3 check_11_mf664.py python3 check_v2_arscott_example.py python3 check_arscott1967.py python3 check_miller1977.py python3 rigor_checks.py python3 rigor_checks_twoterm.py The last two print the Appendix C numerical checks and write log files in this directory. Each of the first four prints PASS lines and a final success message if the checks succeed. check_arscott1967.py prints PASS or FAIL for each identity (a few FAILs are expected: they record the printed sign in Arscott's (1.6c)) and finishes in about ten seconds. check_miller1977.py likewise prints PASS or FAIL for each identity (one FAIL is expected: it records the printed sign in Arscott's (1.6c) against Miller's (1.26)) and finishes in a few seconds. check_v2_arscott_example.py takes about four minutes; the others finish in seconds. check_11_mf664.py imports paper_common.py, which must remain in the same directory. To rebuild the Sec. 6.4 overshoot numbers from the included series file: python3 rim_overshoot.py This uses series_Q960.json (included) and, for a consistency check, series_Q240.json (also included). It writes rim_overshoot_peaks.json, rim_profiles.npy, and rim_fd_rows.npy in the current directory. A full run takes a few minutes. It compares the series with a precomputed finite-difference slice in fd_rim_slice.npy; if that file is missing, the script skips the comparison and exits after the series checks. You can pass another series file as the first argument. To redraw Fig. 9 from those profiles (after rim_overshoot.py has been run in the same directory): python3 make_fig_rim.py This writes mathieu_series_rim.pdf and mathieu_series_rim.png in the current directory. You may pass the path to rim_profiles.npy as the first argument. To redraw Figs. 11 and 12: python3 make_fig_farfield.py The following two scripts rebuild data used above. They are much slower and are not needed for the checks if the included data files are left in place. python3 build_series_par.py 960 rebuilds series_Q960.json (many minutes to hours; optional second argument is the highest even Mathieu order to scan). The included series_Q960.json is the file used for the numbers in the paper. python3 fd_rim_slice.py rebuilds fd_rim_slice.npy by running the Cartesian finite-difference solver in fd_check.py at grid sizes h = 0.1 and h = 0.05. This can take several minutes. What each script checks ----------------------- check_appendix_staeckel.py Appendix A. The Stäckel determinant and cofactor identities, the Moon-Spencer metric coefficients recovered from the matrix, the Euclidean mapping, the unified Helmholtz equation (eq:par-st-unified), and the handbook Laplace equations at k = 0. check_11_mf664.py Appendix A, Morse-Feshbach paragraph. The p. 664 Stäckel matrix (eq:mf-row), the metric and volume factors, and the reduction of the Morse-Feshbach equations to the unified form under the constant dictionary (eq:mf-constants). check_08_eisenhart_map.py Appendix B. The map between Eisenhart's Type IV_2 system and the Moon-Spencer paraboloidal coordinates: the Cartesian identification (eq:eisenhart-xyz), the scale-factor relation (eq:eisenhart-Hmap), and the relation of Eisenhart's f to the Moon-Spencer W factors (eq:eisenhart-fW). check_miller1977.py Section 6 footnote on Miller's coordinate dictionary, and Appendix A (the reduction of the unified equation to Miller's (1.26)). Miller's 1977 Table 14, system 9, map and the permutation to our (x, y, z); the dictionary from his (q, lambda, c, omega) to our (alpha_2, alpha_3, b, c, k); the k = 0 limit recovering Mathieu's equation (eq:mathieu) and Miller's (6.22); and the agreement of his (1.26) Gamma equation with the corrected sign in Arscott's (1.6c). Requires only SymPy. A full run finishes in a few seconds. check_arscott1967.py Appendix A, paragraph on the Helmholtz case in Arscott's angles. Arscott's 1967 coordinate map (1.1) and scale factors, the Helmholtz operator (1.4), the dictionary from his (lambda, mu, c, k) to our (alpha_2, alpha_3, b, c, k), the reduction of the unified equation to the Whittaker-Hill equation (eq:whittaker-hill), and the k = 0 limit recovering Mathieu's equation (eq:mathieu). It also records an apparent sign misprint in Arscott's (1.6c). Requires only SymPy. A full run finishes in about ten seconds. check_v2_arscott_example.py Section 6. Arscott's coordinate dictionary against eq:mapping (eq:arscott-dict); the reduction of the unified equation to Mathieu's equation (eq:mathieu), symbolically; the lowest roots of eq:q-roots by a Fourier series and, for q_00, by direct ODE integration; for the single-mode solution (eq:single-mode), the Cartesian Laplacian, V = 0 on mu = mu0, the axis values quoted in the text, and quadratic (smooth) behavior across x = 0 and y = 0; and the first 15 terms of the constant-potential series (eq:series, eq:Cnm) on the axis. It works at 25-30 digits. paper_common.py Shared symbols used by check_11_mf664.py. It is not a standalone check. pbvp.py Shared geometry, Mathieu coefficients, and mode functions for the Sec. 6.4 scripts. It is not a standalone check. solution.py Series and single-mode evaluators used by rim_overshoot.py. It is not a standalone check. build_series_par.py Builds a truncated Mathieu-series file (roots and coefficients) for the constant-potential problem of Sec. 6.4. Used by rim_overshoot.py only for the ModeN class, unless you rerun it to rebuild a series file. rim_overshoot.py Sec. 6.4. From series_Q960.json, finds the peak of each truncated sum on the electrode, the distance of that peak from the rim, and profiles just inside the electrode (including the surface nu = 0.001 used for Fig. 9). It also compares the series with the included finite-difference slice near the rim. The paper's quoted peak heights and distances come from this calculation. fd_rim_slice.py Runs fd_check.py and saves the y = 0 slice used by rim_overshoot.py. fd_check.py Independent Cartesian finite-difference solver for the same boundary-value problem. Used by fd_rim_slice.py. It can also be run on its own. make_fig_rim.py Draws Fig. 9 from rim_profiles.npy written by rim_overshoot.py. make_fig_farfield.py Draws Figs. 11 and 12 of Section 7 (geometry of the paraboloid of revolution, and the far-field decay of the Gaussian example). The decay points are the high-precision Hankel-integral values used in Table 4, not a new computation. Running it writes fig_farfield_geometry.pdf/.png and fig_farfield_decay.pdf/.png in this directory, and also updates ../figures/ if that path exists. asymptotics_bc.py Appendix C preliminaries: Mellin identities for beta(kappa) and high-precision checks of the b=c Hankel integral against the far-field law. rigor_checks.py Appendix C. Numerical checks of every inequality and constant used in the proof of Theorem 7.1, at 30 significant digits, including an end-to-end comparison of the explicit error bound with the exact Hankel integral for the Gaussian example. rigor_checks_twoterm.py Appendix C, Corollary C.6. Checks that the two-term remainder stays consistent with an O(1/L^3) error for the same Gaussian example. Data files ---------- series_Q960.json 466-term series used for the Sec. 6.4 numbers (all modes with q <= 960). Built by build_series_par.py. series_Q240.json Earlier 118-term series (q <= 240), kept so rim_overshoot.py can check that the two files agree where they overlap. fd_rim_slice.npy Precomputed y = 0 slices of the finite-difference solution at h = 0.1 and h = 0.05, so the overshoot comparison can be run without rebuilding the grid solution.