C++ Ranges proposal for the Standard Library

via Digitalmars-d digitalmars-d at puremagic.com
Sat Oct 18 02:37:54 PDT 2014


On Saturday, 18 October 2014 at 09:30:20 UTC, Ola Fosheim Grøstad 
wrote:
> 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:

Or more accurately: there is a C version built into Python called 
math.fsum() that is fairly accurate (except last bit of mantissa).

I believe the link above provide slower versions that are 
accurate.


More information about the Digitalmars-d mailing list