View Full Version : 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
silverfrost
Oct26-09, 05:32 AM
http://publib.boulder.ibm.com/infocenter/lnxpcomp/v8v101/index.jsp?topic=/com.ibm.xlf101l.doc/xlflr/sign.htm
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.
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.