Blame view

fvn_fnlib/zcbrt.f 335 Bytes
38581db0c   daniau   git-svn-id: https...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
        complex(8) function zcbrt (z)
        implicit none
  c april 1977 version.  w. fullerton, c3, los alamos scientific lab.
        complex(8) z
        real(8) theta,zarg,r,dcbrt
        external zarg, dcbrt
  c
        theta = zarg(z) / 3.0
        r = dcbrt (abs(z))
  c
        zcbrt = dcmplx (r*cos(theta), r*sin(theta))
  c
        return
        end