AccurateSum

AccurateSum(v)

Accurate summation.

Returns the value \sum_{i=0}^{n-1}x_i using extended precision (if available) or Kahan’s method

Parameters:
xsequence of float
Returns:
resultfloat