Solve one TBA equation with checks
A tiny nonlinear residual can coexist with an inaccurate pressure. Solve the repulsive Bose gas at , , in units . You will obtain and by two routes and identify which numerical variations probe different errors.
Discretize the same physical state twice
Section titled “Discretize the same physical state twice”Set . The entropy variation gives with . On make a Gauss–Legendre grid with weights and use . Starting at the bare energy, the downloadable calculation solves for by Newton iteration; it evaluates the logarithm stably for either sign of . The pressure is . Yang and Yang, §IV, Eqs. (15)–(17), and §V, Eqs. (19)–(26)
Independently obtain the occupied density. With , solve
The filling multiplies the row in this equation. The integration weight multiplies the column in . Swapping them can leave plausible looking output.
Decide which digits to keep
Section titled “Decide which digits to keep”- Nonlinear solve. At and 128 nodes, the maximum absolute dressed-energy residual is , in energy units.
- Cutoff. At 96 nodes, increasing from three to four to six changes from to to .
- Resolution. At fixed , 32 nodes give even though their residual is . At 64 nodes ; at 128 it is .
- Thermodynamic identity. At 128 nodes, . Recompute the full pressure at and take its central difference. For and the absolute errors against are and . Their ratio is consistent with second-order differentiation. This identity tests the normalization of two observables.
Your turn. A colleague reports ten digits from the 32-node run because the nonlinear equations are solved to machine precision. Use the mesh test to estimate the pressure discrepancy. Compare it with the nonlinear residual.
Check the pressure discrepancy
Subtract the fine-mesh pressure, 0.2829132478, from the coarse-mesh result, 0.2830260605. The difference is about in pressure units. In the chosen units the dressed-energy residual is about eleven orders of magnitude smaller numerically. It measures the error in satisfying the discretized energy equation. Mesh refinement tests the reported pressure.
Test the equation between the solver’s nodes
Section titled “Test the equation between the solver’s nodes”The small residual tests a finite set of equations. To test the approximation elsewhere, keep and take 384 fresh Gauss–Legendre points with weights on the same interval. First extend your coarse-grid solution using the integral equation itself. Then evaluate its convolution on the fine grid:
At the stated inputs the maximum is with 32 coarse nodes and with 64. At 128 it is below . The two quadratures agree on the equation as the coarse grid resolves the kernel. A separate change of still tests the omitted tails.
Transfer. Choose . Predict the new density, pressure and rapidity cutoff for the same scaled interval.
Check the scaled state
The bare energies increase by four under , leaving unchanged at corresponding nodes. Hence doubles and grows by eight. The reference run therefore predicts and . Use cutoff 16 to keep the same scaled integration interval. The companion checks the two independent runs. For a low-temperature edge, resolution near the rapidity where changes sign becomes a separate concern.
References
Section titled “References”- C. N. Yang and C. P. Yang, “Thermodynamics of a One-Dimensional System of Bosons with Repulsive Delta-Function Interaction,” Journal of Mathematical Physics 10 (1969), 1115–1122. DOI
Connected readings