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

Eli Brosh ebrosh at nana.co.il
Mon Apr 2 11:33:54 CEST 2007


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 "pythonw.exe has encountered a problem and needs to close. We are sorry for the inconvenience."
 
The IDLE does not close but it is restarted:
There appears a line: >>> ================================ RESTART ================================
 
 
 
I tried to assign the argument to a variable:
>>>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 ?
 
 
 
Thanks
Eli

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20070402/ca5abc1a/attachment.html 


More information about the Tutor mailing list