[Numpy-discussion] log bug?

Todd Miller jmiller at stsci.edu
Sun Dec 26 14:16:05 CST 2004


On Sun, 2004-12-26 at 11:26 -0800, Ralf Juengling wrote:
> 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

Hi Ralf,

This is fixed in CVS now.

Thanks,
Todd





More information about the Numpy-discussion mailing list