- Home
- Reference
- Lattice and Numerical Methods
- Numerical Precision and Convergence
Numerical Precision and Convergence
For an approximation with a known leading error,
Richardson extrapolation removes that leading term:
is the refined grid, step or cutoff parameter, and is the limit of the same problem. This assumes an asymptotic expansion with nonzero leading coefficient and other errors smaller than the term being fitted. At fixed finite volume, is not also an infinite-volume limit. Increasing floating-point precision is not a continuum extrapolation.
Diagnose the observed order
With three refinements, a nonvanishing leading power predicts
The measured ratio estimates the order over the tested range of step sizes. Oscillatory errors, logarithms, changing boundary data, solver tolerances, and statistical noise can invalidate a one-power fit.
For a concrete check, apply the centered derivative to at :
The extrapolated estimate is . Before roundoff dominates, halving reduces the original error by about four and the extrapolated error by about sixteen. This checks both the cancellation coefficient and its remaining sign.
Precision, cancellation and conditioning
Roundoff and discretization compete. A difference quotient subtracts nearby computed values, so making arbitrarily small can amplify absolute evaluation errors by . More digits extend the usable range; an algebraically stable formula can be better still. For example,
The right-hand expression avoids subtracting two numbers close to one. In binary64 arithmetic the direct expression can already round to zero at , while the rewritten expression retains the limit. Precision should be increased before evaluating cancellation-prone intermediates; converting an already rounded result to a larger type cannot restore lost information.
A small residual is also not always a small solution error. For , define . With a nonsingular matrix and a consistent norm,
for . A large condition number can turn a tiny relative residual into a weak accuracy guarantee.
In a field-theory calculation, vary the controls that affect the claimed result: regulator size, volume, basis truncation, quadrature resolution, solver tolerance, arithmetic precision, and sampling length. Use exact symmetries, limiting cases or a differently organized calculation when available. Agreement of two implementations sharing the same approximation does not test that approximation.
See high-precision optimization for cancellation and independently evaluated solver residuals, and the computational Library for quadrature and regulator examples.
References
- Goldberg, David. “What Every Computer Scientist Should Know About Floating-Point Arithmetic,” “Rounding Error,” especially “Cancellation”, authorized reprint in Oracle's Numerical Computation Guide.
- Heath, Michael T., and Evan VanderZee. “Richardson Extrapolation,” Interactive Educational Modules in Scientific Computing, corresponding to Heath, Scientific Computing, §8.7, Example 8.8. The centered-exponential expansion above provides the explicit check.
Scrollable formula. Use Left and Right arrow keys to reveal hidden content.
Scrollable table. Use Left and Right arrow keys to reveal hidden columns.
Scrollable figure. Use Left and Right arrow keys to reveal hidden content.