-
git-svn-id: https://lxsd.femto-st.fr/svn/fvn@69 b657c933-2333-4658-acf2-d3c7c2708721
zcbrt.f
373 Bytes
complex(kind(1.d0)) function zcbrt (z)
implicit none
c april 1977 version. w. fullerton, c3, los alamos scientific lab.
complex(kind(1.d0)) z
real(kind(1.d0)) theta,zarg,r,dcbrt
external zarg, dcbrt
c
theta = zarg(z) / 3.0
r = dcbrt (abs(z))
c
zcbrt = cmplx (r*cos(theta), r*sin(theta), kind(1.d0))
c
return
end