This is a bit of a wierd one,

I'm looking for a function that will convert a complex number to its real and imaginary parts, using only complex number operations.


So if you imagine I had a calculator that could do all the complex number calculations, even eqponents and natrual logs etc. But it didn't have functions to get the real part imaginary part, nor the modulus and argument.

What function should I use to get the real part of a complex number?


I hope that makes sense, (I don't actually have the crazy calculator, so don't just tell me to get a new calculator.)