[SciPy-user] Default functions return complex numbers

Travis Oliphant oliphant.travis at ieee.org
Mon Mar 25 20:53:35 EST 2002


The functions immediately under the scipy namespace now return complex 
numbers when necessary.

For example:

scipy.log(-1) returns pi*1j
scipy.sqrt(-1) returns 1j

The old behavior for those routines is available as

scipy.fastumath.log
scipy.fastumath.sqrt
etc.

-Travis O.







More information about the SciPy-User mailing list