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.
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
Derp. Thanks so much.
Asked: 13 years ago
Seen: 15,051 times
Last updated: Feb 19 '12