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

How can you write sgn[Im(z)] in fortran?

  1. Oct 25, 2009 #1
    How can you write "sgn[Im(z)]" in fortran?

    Hello everybody;


    How can you write "sgn[Im(z)]" in fortran? , then what do

    you need to add in the header?

    also what does "sign(a,b)" mean?


    Much Thanks in advance
     
  2. jcsd
  3. Oct 26, 2009 #2
  4. Oct 26, 2009 #3

    minger

    User Avatar
    Science Advisor

    Re: How can you write "sgn[Im(z)]" in fortran?

    I'm not sure how your compiler will handle SIGN with complex numbers. It may be useful for you to keep track of the real/imaginary components separately in different variables rather than using a single COMPLEX variable.

    If it does work with complex numbers though, then great.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: How can you write sgn[Im(z)] in fortran?
Loading...