[NumPy-Tickets] [NumPy] #1250: Behavior of np.sign for complex number

NumPy Trac numpy-tickets@scipy....
Fri Mar 25 04:38:05 CDT 2011

#1250: Behavior of np.sign for complex number
 Reporter:  dhuard         |       Owner:  pv         
     Type:  defect         |      Status:  new        
 Priority:  normal         |   Milestone:  Unscheduled
Component:  Documentation  |     Version:  devel      
 Keywords:                 |  

Comment(by pv):

 There are basically two common complex sign functions: `z/sqrt(z^2)` --
 which is what sign() currently does, and `z/|z|` -- which e.g. Mathematica
 uses. I've seen both used in the literature.

 I don't think there is a big need for it to raise an exception, as there
 is not that much room for confusion, and I don't see this as a big source
 of bugs. Just explaining the current behavior in the docstring should be

Ticket URL: <http://projects.scipy.org/numpy/ticket/1250#comment:7>
NumPy <http://projects.scipy.org/numpy>
My example project

More information about the NumPy-Tickets mailing list