Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Silly complex number question

  1. Jun 28, 2008 #1
    If I were given a complex number, such as


    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.
  2. jcsd
  3. Jun 28, 2008 #2


    User Avatar
    Staff Emeritus
    Science Advisor
    Gold Member

    Multiply the top and bottom of the complex conjugate (12-3i). This clears the denominator of the imaginary component.
  4. Jun 28, 2008 #3
    Thank you.

    Sadly, I didn't think of doing that.
  5. Jun 29, 2008 #4


    User Avatar
    Science Advisor
    Homework Helper
    Gold Member
    Dearly Missed

    Why sadly?

    Next time, you'll manage on your own. :smile:
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Similar Threads - Silly complex number Date
I Fourier series of Dirac comb, complex VS real approaches Thursday at 3:38 PM
Silly theoretical area question Jan 17, 2016
A silly question about equations... May 16, 2015
Silly Math Question! Please help! Feb 28, 2012
Silly question Dec 6, 2011