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

Fernando Perez at
Thu Oct 12 02:46:33 CDT 2006

On 10/12/06, Travis Oliphant <oliphant.travis at> wrote:
> > I'd like to pitch in (again) on this issue, but I'll try to make sure
> > that it's clear that I'm NOT arguing about sqrt() in particular, one
> >
> > way or another.
> >
> Fernando,
> I don't disagree with you in principle.  I don't think anybody does. I
> think we should try to keep the interfaces and expectations of scipy and
> numpy the same.

OK, I'm glad to hear that.  For a moment during the discussion I
misunderstood your intent and thought you did disagree with this,
which worried me.  Sorry for the confusion and any noise caused.

I realize the sqrt() topic is a tricky one which I've deliberately
sidestepped, since I wasn't too interested in that particular case but
rather in the general principle.  I'll leave that discussion to
continue on scipy-dev for those who are intereseted in it.



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