Functions for summing floating point numbers more accurately than the
naive
sum function and its counterparts in the
vector
package and elsewhere.
When used with floating point numbers, in the worst case, the
sum function accumulates numeric error at a rate proportional
to the number of values being summed. The algorithms in this module
implement different methods of /compensated summation/, which reduce
the accumulation of numeric error so that it either grows much more
slowly than the number of inputs (e.g. logarithmically), or remains
constant.