Robert Bradshaw 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...
I agree. This is http://trac.sagemath.org/sage_trac/ticket/5420 and is very easy, low-hanging fruit for anyone that wants to learn how to contribute to Sage :). Jason --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---