Catastrophic cancellation

ID: catastrophic-cancellation

Catastrophic cancellation is a numerical phenomenon that occurs when subtracting two nearly equal numbers, resulting in a significant loss of precision in the result. This can happen in floating-point arithmetic, where the limited number of significant digits affects the accuracy of computations. When two close numbers are subtracted, their leading digits can cancel out, and only the less significant digits remain, which may be subject to rounding errors.

New to topics? Read the docs here!