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

2007-04-02 Thread Eike Welk
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

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

2007-04-02 Thread Eli Brosh
Alan G wrote: >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? Well, the error message is not from Pytho but from the operating system (windows XP). It says "py

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

2007-04-01 Thread Alan Gauld
"Eli Brosh" <[EMAIL PROTECTED]> 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 var

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

2007-04-01 Thread Eli Brosh
Hello I am trying to convert from MATLAB to Python. I am using Python 2.4.3 for Windows (Enthought Edition) In one of the first programs, I tried to use the special functions from the SciPy "special" module. However, when I tryed: >> from scipy import * >> special.jv(0,1+1j) I got an error me