On Mar 1, 2009, at 4:09 AM, Alasdair wrote:

>
> Here's the error:
>
> c=complex((sqrt(3)+2*I)^4)
> imag(c)
>
> returns
>
> "TypeError: 'float' object is not callable"
>
> So - how do I obtain the imaginary part of c?

c.imag

Our imag() function should really know about Python complex variables...

- Robert



--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to