Benchmarking numerical and symbolic methods
Two discretizations can agree to twelve digits while solving the wrong problem. For the unit-density sine process, the probability of no particles in is a Fredholm determinant. The number of quadrature nodes is a numerical choice. The interval length is part of the physical question. An endpoint identity tests both the sign of the kernel and the dependence on that length.
Separate the operator from the mesh
Section titled “Separate the operator from the mesh”Use with . On let . For Gauss–Legendre nodes and weights on the physical interval, the Nyström approximation is
Square-root weighting makes this real matrix symmetric and preserves the determinant of the usual column-weighted rule. The factor from mapping the nodes to belongs in the weights. Bornemann derives the quadrature determinant and relates convergence to smoothness of the kernel. Bornemann, §6, Eq. (6.1) and Thm. 6.2, PDF
Start with the constant kernel on . It has exactly one nonzero eigenvalue , so its determinant is . Any quadrature exact on constants should recover it to rounding accuracy. This catches a weight error with a single node. The constant kernel is a short-interval control. At it would predict zero and is a poor replacement for the sine kernel.
Test a derivative as well as a value
Section titled “Test a derivative as well as a value”| Nodes | ||
|---|---|---|
| 2 | 0.178408777177 | 2.6399690805 |
| 4 | 0.170227142074 | 2.7381651500 |
| 8 | 0.170217421379 | 2.7382710275 |
| 16 | 0.170217421379 | 2.7382710275 |
Here . Adding a short interval at the upper end gives . The sign can be checked as , where . The resolvent equation gives another numerical route. With the matrix inside the determinant and , solve and evaluate . The leading one is the diagonal of the original kernel. Tracy and Widom, §I, endpoint derivatives and resolvent, PDF
A centered difference of and differs from by for . These are absolute discrepancies in a derivative, not error bars on . The downloadable calculation separates quadrature order from finite-difference step. A separate Painlevé V check uses the nonlinear equation obeyed by a rescaled logarithmic derivative.
Build a genuine truncation control
Section titled “Build a genuine truncation control”The first departure from the constant-kernel answer checks the frequency normalization. The two-point term of the Fredholm expansion integrates over the square. Expanding the sinc gives . Since the square integral of is , the gap probability begins
The three-point determinant contributes only at higher order: subtract its first row from the next two, each of which then starts at order , before integrating over three positions. With 12 quadrature nodes, the ratio at , and gives , and , tending toward . Omitting from the kernel would alter this coefficient even if the single-node constant test passed.
For the sine problem, replacing with produces a different probability. For a real cutoff test, take the half-line rank-one kernel on . Its sole eigenvalue is . Truncating at changes by exactly , even with perfect quadrature. A calculation at therefore retains about of error even if doubling the node count changes no displayed digit.
An independent repetition should give the kernel and measure, the physical observable, the sequence of each numerical control and at least one identity with a different failure mode. Agreement after changing two controls simultaneously can conceal an error cancellation. This method compares the endpoint analysis published in 1994 and the quadrature analysis published in 2010.
References
Section titled “References”Related research programs