[Numpy-discussion] log bug?

Ralf Juengling juenglin at cs.pdx.edu
Sun Dec 26 11:33:02 CST 2004


Hi,

I'm not sure this behavior is intended:

>>> from numarray import *
>>> log(array([0.0], type=Float64))
Warning: Encountered divide by zero(s)  in log
array([              inf])
>>>


-inf would be a more useful result.


ralf







More information about the Numpy-discussion mailing list