!MAIN PROGRAM
PROGRAM HOMEWORK0
complex*8 a,b
a=cdsqrt((-4.d0,0.d0))
write(*,*)a
b = cdabs(a)
write(*,*)b
stop
END PROGRAM HOMEWORK0
!MAIN PROGRAM
PROGRAM HOMEWORK0
complex*8 a,b
a=cdabs(cdsqrt((-4.d0,0.d0)))
write(*,*)a
stop
END PROGRAM HOMEWORK0
PROGRAM HOMEWORK0
Implicit None
complex(kind=8) :: a , b
a=sqrt((-4.d0,0.d0))
write(*,*)a
b = abs(a)
write(*,*)b
END PROGRAM HOMEWORK0
vvt 发表于 2017-11-1 08:50
第一个问题
complex*8 a , b
等效于
欢迎光临 Fortran Coder (http://bbs.fcode.cn/) | Powered by Discuz! X3.2 |