Finding Re() and Im() for complex numbers    
   Hey guys,
Is there a way to find the real and imaginary parts of a complex number in Sage? If so, how is it done?
Thanks.
.real() for real part .imag() for imaginary part
For eg.
(3+i*4).real()=3
(3+i*4).imag()=4
Asked: 2012-02-19 00:39:49 +0100
Seen: 15,873 times
Last updated: Feb 19 '12
 Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.
 
                
                Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.