Message70623
> Question: I see "math module patch committed, r63542" in May 22. But in
> 3.0b2, there is no math.fsum and math.sum seems to be a wrapper for
> builtin sum. Has this not been forward ported (merged) yet?
I'm pretty sure it *was* merged: math.sum should be the full-precision
summation in both recent betas (2.6b2 and 3.0b2). Try comparing
sum([1e100, 1, -1e100, -1]) and math.sum([1e100, 1, -1e100, -1])---they
should produce -1.0 and 0.0 respectively.
The name change to fsum only happened in the last few days. |
|
Date |
User |
Action |
Args |
2008-08-02 08:57:14 | mark.dickinson | set | recipients:
+ mark.dickinson, tim.peters, rhettinger, terry.reedy, MrJean1 |
2008-08-02 08:57:14 | mark.dickinson | set | messageid: <1217667434.47.0.770731192577.issue2819@psf.upfronthosting.co.za> |
2008-08-02 08:57:13 | mark.dickinson | link | issue2819 messages |
2008-08-02 08:57:12 | mark.dickinson | create | |
|