C++ Ranges proposal for the Standard Library

eles via Digitalmars-d digitalmars-d at puremagic.com
Sat Oct 18 05:47:59 PDT 2014


On Saturday, 18 October 2014 at 10:44:59 UTC, Ola Fosheim Grøstad 
wrote:
> On Saturday, 18 October 2014 at 08:21:47 UTC, eles wrote:
>> On Saturday, 18 October 2014 at 05:54:01 UTC, Ola Fosheim 
>> Grøstad wrote:
>>> On Saturday, 18 October 2014 at 04:35:07 UTC, Walter Bright 
>>> wrote:
>>
>>> Larger mantissa can help a little bit, but only a little bit.
>>
>> https://en.wikipedia.org/wiki/Kahan_summation_algorithm
>
> Kahan helps a little bit:
>
>
> a = [math.pi*(n**9) for n in range(0,101)]
>       +[-math.pi*(n**9) for n in range(100,0,-1)]

This might simply be a case biased in favor of pairwise 
summation, as numbers ar symmetric.


More information about the Digitalmars-d mailing list