Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

f({x:2+2i}) can never have worked: 2i isn't valid Sage. Either use *I or j, depending on where you want the result to live:

sage: 2+2i   
   File "<ipython console>", line 1
SyntaxError: invalid syntax

sage: 2+2j
2.00000000000000 + 2.00000000000000*I
sage: parent(_)
Complex Field with 53 bits of precision
sage: 2+2*I    
2*I + 2
sage: parent(_)
Symbolic Ring