Thanks - being a beginner I thought that c.imag() was the only
allowable syntax; I didn't know c.imag was allowed.

-Alasdair

On Mar 1, 11:14 pm, Robert Bradshaw <[email protected]>
wrote:
> 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 [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
-~----------~----~----~----~------~----~------~--~---

Reply via email to