Finding Real and Imaginary Parts of Complex Numbers

  • Context: Undergrad 
  • Thread starter Thread starter magda3227
  • Start date Start date
  • Tags Tags
    Complex Complex number
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
3 replies · 2K views
magda3227
Messages
19
Reaction score
0
If I were given a complex number, such as

12/(12+3i)

in order to find the real and imaginary parts of the number, I assume that I cannot just reduce the fraction and say the real part is 1 and the imaginary part is 4. I can almost guarantee that this will not calculate the correct answer.

So how would I find the real and imaginary parts of this number?

I'm sorry to ask such a stupid question, but I am rewriting MatLab code into ANSI C and need to separate such numbers into their real and imaginary parts.

Thank you in advance.
 
Physics news on Phys.org
Thank you.

Sadly, I didn't think of doing that.