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

Travis Oliphant oliphant.travis at
Thu Oct 12 01:40:18 CDT 2006

David Goldsmith wrote:
> Travis Oliphant wrote:
>> What could be simpler? ;-)
> Having sqrt(-1) return 1j (without having to remember that in order to 
> get this, you have to write sqrt(-1+0j) instead).
That's exactly what scipy.sqrt(-1) does.  That was my point.


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