On Monday 02 April 2007 11:33, Eli Brosh wrote: > >>>>from scipy import * > >>> > >>> x=.5 > >>> special.jv(0,x) > > 0.938469807241 > > >>> y=.5+1.j > >>> y > > (0.5+1j) > > >>> special.jv(0,y) > >>> ================================ RESTART > >>> ================================ > > The results are still the same: when the variable is real, the > result is correct. When the variable is comlex, the program > crashes. > Is it a bug ?
I think it is a bug, the function should definitely not crash the python session. You should go to the SciPy mailing list: http://projects.scipy.org/mailman/listinfo/scipy-user Maybe there someone knows a workaround for you. On my computer it does not crash: In [1]:import scipy In [2]:from scipy import * In [3]:y=.5+1.j In [4]:special.jv(0,y) Out[4]:(1.1798566304-0.273726785591j) In [5]:scipy.__version__ Out[5]:'0.5.2' Regards, Eike. _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor