Numerical methods are algorithms for approximating solutions to mathematical problems β root finding, integration, linear systems, eigenvalues, and differential equations β that either have no closed-form answer or are impractical to solve analytically at scale. They sit at the intersection of mathematics, computer science, and engineering, powering everything from climate simulations to GPS positioning. The critical insight every practitioner needs: accuracy (closeness to the true answer) and stability (whether rounding errors grow or decay through the computation) are independent properties β an algorithm can be one without the other, and only the combination of a well-conditioned problem with a backward-stable algorithm guarantees trustworthy results.
What This Cheat Sheet Covers
This topic spans 14 focused tables and 110 indexed concepts. Below is a complete table-by-table outline of this topic, spanning foundational concepts through advanced details.
Table 1: Error Analysis Fundamentals
Every numerical computation introduces error. Understanding the sources β rounding (finite precision) versus truncation (finite approximation) β and how to measure them is the foundation for assessing whether a result can be trusted.
| Concept | Example | Description |
|---|---|---|
\varepsilon_{\text{mach}} = 2^{-52} \approx 2.22 \times 10^{-16} (double) | Smallest positive value such that \text{fl}(1 + \varepsilon) > 1; upper bound on relative rounding error for any single floating-point operation. | |
\lvert \hat{x} - x \rvert = \lvert 3.14 - \pi \rvert \approx 0.00159 | Raw magnitude of the deviation between computed value \hat{x} and true value x; misleading without context of the scale of x. | |
\frac{\lvert \hat{x} - x \rvert}{\lvert x \rvert} \approx \frac{0.00159}{3.14159} \approx 5.07 \times 10^{-4} | Absolute error scaled by \lvert x \rvert; directly reflects the number of correct significant digits (-\log_{10}(\text{rel. err.}) digits). | |
\text{fl}(0.1) \neq 0.1 exactly in binary | Error from representing a real number in finite-precision floating-point; each arithmetic op introduces at most \varepsilon_{\text{mach}} of relative error. |