This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author MrJean1
Recipients MrJean1, mark.dickinson, rhettinger
Date 2008-05-12.19:16:54
SpamBayes Score 0.0176035
Marked as misclassified No
Message-id <1210619821.69.0.153309544067.issue2819@psf.upfronthosting.co.za>
In-reply-to
Content
The current results are quite "interesting"

>>> math.sum([1e308, 1e308, -1e308])
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
OverflowError: math range error

>>> math.sum([1e308, -1e308, 1e308])
1e+308


Handling this case would require holding the finite, prior sum at an 
intermediate overflow in a separate array, say overflows.  Then, add the 
partials which may create additional overflows.  Finally, keep adding 
the overflows (accurately?) until none remain or until none can be added 
without overflow.

/Jean Brouwers
History
Date User Action Args
2008-05-12 19:17:02MrJean1setspambayes_score: 0.0176035 -> 0.0176035
recipients: + MrJean1, rhettinger, mark.dickinson
2008-05-12 19:17:01MrJean1setspambayes_score: 0.0176035 -> 0.0176035
messageid: <1210619821.69.0.153309544067.issue2819@psf.upfronthosting.co.za>
2008-05-12 19:16:57MrJean1linkissue2819 messages
2008-05-12 19:16:55MrJean1create