PDA

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


nnnnn
Oct25-09, 06:54 PM
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

silverfrost
Oct26-09, 05:32 AM
http://publib.boulder.ibm.com/infocenter/lnxpcomp/v8v101/index.jsp?topic=/com.ibm.xlf101l.doc/xlflr/sign.htm

minger
Oct26-09, 08:42 AM
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.