Should numpy.sqrt(-1) return 1j rather than nan?

David Goldsmith David.L.Goldsmith at
Thu Oct 12 01:31:35 CDT 2006

Travis Oliphant wrote:
> This is the one that concerns me.  Slowing everybody down who knows they 
> have positive values just for people that don't seems problematic.
Then have a "sqrtp" function for those users who are fortunate enough to 
know ahead of time that they'll only be talking square roots of 


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo

More information about the Numpy-discussion mailing list