[Tutor] A bug or a feature - complex arguments in special functions

Alan Gauld alan.gauld at btinternet.com
Mon Apr 2 02:24:06 CEST 2007


"Eli Brosh" <ebrosh at nana.co.il> wrote 

>> from scipy import *
>> special.jv(0,1+1j)
> 
> I got an error message and python restarted.

It would be good if you could include the error text.

However, did you try putting the complex number in parens?
or assigning to a variable and then pass the variable into the call?
It may simply be that Python is interpreting it as

special.jv((0,1)+1j)

 or somesuch strangeness.

But I don't use SciPy so I can't check. An error text may help.

Alan G



More information about the Tutor mailing list