[Python-Dev] RE: [Numpy-discussion] RE: Possible bug (was Re: numpy, overflow, inf, ieee, and rich comparison)
William Park
parkw at better.net
Wed Oct 11 23:18:30 EDT 2000
On Wed, Oct 11, 2000 at 07:22:54PM -0700, Huaiyu Zhu wrote:
> >>> from math import *
> >>> exp(777)
> inf
> >>> exp(-777)
> 0.0
> >>> sqrt(-1)
> Traceback (innermost last):
> File "<stdin>", line 1, in ?
> OverflowError: math range error
Dear Guido,
'exp(-777)' should return 0, not raise OverflowError exception. It is
mathematically correct behaviour. I am less certain about returning
'inf', though.
---William Park, Open Geometry Consulting
More information about the Python-list
mailing list