Kahan summation algorithm (source code)

= Kahan summation algorithm
{c}

= Kahan summation
{c}
{synonym}

= Compensated (Kahan) summation
{synonym}

= Kahan compensated summation
{c}
{synonym}

A <summation> <algorithm> that keeps a correction for low-order information lost when adding <floating-point numbers>. Feeding that correction into subsequent additions can greatly reduce accumulated rounding error compared with straightforward summation.