Hi all.
After importing scipy, if I run, say,
scipy.complex128(1.0) or even scipy.complex128(1)
I get
(1+0j) ,
as I should. However, if I run
scipy.complex128(1.0j) ,
I get this weird error:
-------SNIP--------------------------
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/cf/.sage/sage_notebook/worksheets/cfantanas/4/code/
235.py", line 7, in <module>
scipy.complex128(_sage_const_1p0j )
File "/home/cf/Code/APD/", line 1, in <module>
File "complex_number.pyx", line 879, in
sage.rings.complex_number.ComplexNumber.__float__ (sage/rings/
complex_number.c:6201)
TypeError: can't convert complex to float; use abs(z)
--------SNIP------------------------
I am NOT asking it to convert complex to float (at least, I don't
think I do).
I am running Sage 3.4 on 64-bit SuSE 11.1 with stock kernel
2.6.27.21-0.1, if that matters.
TIA for your responses.
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---