Blame view

fvn_fnlib/zarg.f 288 Bytes
0c3098aed   cwaterkeyn   ChW 02/2010 for t...
1
        real(kind(1.d0)) function zarg (z)
38581db0c   daniau   git-svn-id: https...
2
3
        implicit none
  c april 1977 version.  w. fullerton, c3, los alamos scientific lab.
0c3098aed   cwaterkeyn   ChW 02/2010 for t...
4
        complex(kind(1.d0)) z
38581db0c   daniau   git-svn-id: https...
5
6
7
8
9
10
11
12
  
  c
        zarg = 0.0
        if (real(z).ne.0. .or. aimag(z).ne.0.) zarg =
       1  atan2 (aimag(z), real(z))
  c
        return
        end