[SciPy-user] Default functions return complex numbers

Travis Oliphant oliphant.travis at ieee.org
Mon Mar 25 19:53:35 CST 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