Re: [Numpy-discussion] Complex numbers response

2006-10-03 Thread Tim Hochberg
Kenny Ortmann wrote: >> There may be a better way, but:: >> >>alltrue(isreal(x)) >> >> Would work. As would: >> >>not sometrue(x.imag) >> >> In the above test you are already negating the test, so you could just >> drop the not. >> >>> and if so is >>> there a way to extract the(a + i

Re: [Numpy-discussion] Complex numbers response

2006-10-03 Thread Kenny Ortmann
> There may be a better way, but:: > >alltrue(isreal(x)) > > Would work. As would: > >not sometrue(x.imag) > > In the above test you are already negating the test, so you could just > drop the not. >> and if so is >> there a way to extract the(a + ib) because the absolute value of a >> co