Blame view

fvn_fnlib/zcbrt.f 373 Bytes
0c3098aed   cwaterkeyn   ChW 02/2010 for t...
1
        complex(kind(1.d0)) function zcbrt (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
5
        complex(kind(1.d0)) z
        real(kind(1.d0)) theta,zarg,r,dcbrt
38581db0c   daniau   git-svn-id: https...
6
7
8
9
10
        external zarg, dcbrt
  c
        theta = zarg(z) / 3.0
        r = dcbrt (abs(z))
  c
0c3098aed   cwaterkeyn   ChW 02/2010 for t...
11
        zcbrt = cmplx (r*cos(theta), r*sin(theta), kind(1.d0))
38581db0c   daniau   git-svn-id: https...
12
13
14
  c
        return
        end