math.exp underflow (was: exp behaviour: is it a bug ?)

Charles G Waldman cgw at fnal.gov
Wed Jun 7 11:24:39 EDT 2000


Konrad Hinsen <hinsen at cnrs-orleans.fr> writes:

> I'd prefer a portable solution to one that reflects the system math
> library. I had the same problem under AIX, and I solved it by patching
> Python. I just wonder if someone has the patience to work out a
> patch that would create the same behaviour independently of what the
> math library does. Not me, unfortunately...

What do you think the consistent behavior should be?  Should
math.exp(-10000) return 0, or raise some exception?




More information about the Python-list mailing list