> The quadratic equation violated the cardinal rule of numerical analysis: avoid subtracting nearly equal numbers. The more similar two numbers are, the more precision you can lose from subtracting them.
Are there other "rules" like this, regarding numerical analysis? I understand this, but I've never thought of articulating it like that.
There are surprisingly many situations where the unwary end up violating this cardinal rule. For example: solving a system of linear equations. Mathematically, you can use any pivot, but numerical stability suffers if you don't take the largest possible one.
All of this uses to be standard in 1st year engineering classes, so I'm always quite surprised when I see articles like this on HN.
Are there other "rules" like this, regarding numerical analysis? I understand this, but I've never thought of articulating it like that.