Blame view

fvn_fnlib/ccbrt.f 275 Bytes
38581db0c   daniau   git-svn-id: https...
1
2
3
4
5
6
7
8
9
10
11
12
        complex function ccbrt (z)
  c april 1977 version.  w. fullerton, c3, los alamos scientific lab.
        complex z
        external  carg, cbrt
  c
        theta = carg(z) / 3.0
        r = cbrt (cabs(z))
  c
        ccbrt = cmplx (r*cos(theta), r*sin(theta))
  c
        return
        end