Ask Your Question

Finding Re() and Im() for complex numbers

asked 2012-02-19 00:39:49 +0200

SirFibonacci gravatar image

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?


edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2012-02-19 00:45:36 +0200

Shashank gravatar image

.real() for real part .imag() for imaginary part

For eg.


edit flag offensive delete link more


Derp. Thanks so much.

SirFibonacci gravatar imageSirFibonacci ( 2012-02-19 00:46:39 +0200 )edit

answered 2012-02-19 19:10:13 +0200

calc314 gravatar image

real_part(z) and imag_part(z) also work.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2012-02-19 00:39:49 +0200

Seen: 13,971 times

Last updated: Feb 19 '12