[NumPy-Tickets] [NumPy] #1404: complex log doesn't raise warning for invalid value

NumPy Trac numpy-tickets@scipy....
Sun Feb 21 15:36:35 CST 2010


#1404: complex log doesn't raise warning for invalid value
-------------------------+--------------------------------------------------
 Reporter:  charris      |       Owner:  somebody
     Type:  defect       |      Status:  new     
 Priority:  normal       |   Milestone:  1.5.0   
Component:  numpy.core   |     Version:          
 Keywords:  invalid log  |  
-------------------------+--------------------------------------------------
 Compare:

 {{{
 In [14]: np.exp(array(np.nan + 1j))
 Warning: invalid value encountered in exp
 Out[14]: (nan+nan*j)

 In [15]: np.log(array(np.nan + 1j))
 Out[15]: (nan+nan*j)

 }}}

 Note that none of the non-complex versions raise warnings, I assume that
 is a gcc library thing. Maybe there is a flag...

-- 
Ticket URL: <http://projects.scipy.org/numpy/ticket/1404>
NumPy <http://projects.scipy.org/numpy>
My example project


More information about the NumPy-Tickets mailing list