On Saturday, 18 October 2014 at 08:58:22 UTC, John Colvin wrote:
As that article also points out (IIRC), you can got pretty good results by divide-and-conquer without any extra work.

http://code.activestate.com/recipes/393090/

It is built into Python:

import math
a = [1e99,1.0,-1e99]

print sum(a)
0.0

print math.fsum(a)
1.0

Reply via email to