Answer Question
I want to calculate complex variable using fortran script
I want to calculate complex variable using fortran script. example is in under code. but it has error. The complex variable declaration is not recognized. I do not know what should I do. Help me.
-------------------------------------------------------------------------------
-------------------------
#LOCAL COMPLEX X1,Y1,S1 REAL A1,B1,C1,D1 A1=1.0 B1=0.0 C1=1.0 D1=0.866 X1=CMPLX(A1,B1) Y1=CMPLX(C1,D1) S1=X1/Y1 $i1=REAL(S1) // output1 $i2=AIMAG(S1) // output2
-------------------------------------------------------------------------------
-------------------------
-------------------------------------------------------------------------------
-------------------------
#LOCAL COMPLEX X1,Y1,S1 REAL A1,B1,C1,D1 A1=1.0 B1=0.0 C1=1.0 D1=0.866 X1=CMPLX(A1,B1) Y1=CMPLX(C1,D1) S1=X1/Y1 $i1=REAL(S1) // output1 $i2=AIMAG(S1) // output2
-------------------------------------------------------------------------------
-------------------------