Kahan summation — where it appears
Named by 4 essays across 2 fields — each of them below, with the objects they name alongside it.
The order they are added in
Addition is associative in the algebra and is not associative in the arithmetic. The same million numbers, added in a different order, give answers that differ in the third significant figure — and the fix is not a wider float, it is a different order.
The sum that cannot be wrong
Snap every addend to a common multiple before adding, and every partial sum is exact — so the order stops mattering, by construction rather than by luck. Four hundred permutations return one value where an ordinary reduction returns three hundred and three.
What determinism costs
Six ways to add up a vector, priced in operations per element and in accuracy. Nothing sits in the bottom left of the figure — an answer that is the same on every machine costs between three and twelve operations where an answer that is not costs one.
Accuracy and agreement are different properties
The most accurate policy on this site's summation figure returns 119 different answers, and the one that returns a single answer is four orders less accurate. Neither property implies the other, and the vocabulary has one word for both.
Named alongside it
The objects these essays reach for when they reach for this one.
Bitwise reproducibilityExact accumulationPre-rounded summationReproducible summationReduction orderAssociativityBackward stabilityData movementError accumulationError-free transformationFlop countGaussian elimination