Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
integer,parameter:: dp=kind(0.d0)
complex(dp) :: value
module tools
implicit none
contains
pure elemental function dblx(a) result(b)
complex,intent(in) :: a
complex(kind(0.d0)) :: b
b=a
end function
end module
program test
use tools
implicit none
complex :: a(10)
integer :: i
real :: re,im
do i=1,10
a(i)=complex(real(i),-2.*i)
enddo
write(*,*) a
write(*,*) dblx(a)
end program