C++ Ranges proposal for the Standard Library
via Digitalmars-d
digitalmars-d at puremagic.com
Sat Oct 18 02:30:19 PDT 2014
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
More information about the Digitalmars-d
mailing list