6subroutine tm3rtoz(l,k,p,r,ld,wkpr,zkpr)
10integer,
intent(in) :: l,k,p,r,ld
11real(8),
intent(in) :: wkpr(-ld:ld)
12complex(8),
intent(out) :: zkpr(-ld:ld)
17real(8),
external :: wigner3j,factn,factn2,factr
20if (mod(g,2) == 0)
then
26t0=t0/sqrt(dble(2*r+1))
29if (mod(k+p,2) /= 0) t0=-t0
31t0=t0/sqrt(dble(2*k+1))
32t0=t0/sqrt(dble(2*p+1))
35 t1=t0*(wkpr(t)+wkpr(-t))
36 t2=t0*(wkpr(t)-wkpr(-t))
37 if (mod(t,2) == 0)
then
44 if ((k == r).and.(p == 1))
then
45 if (mod(k,2) == 0)
then
elemental real(8) function factn2(n)
elemental real(8) function factn(n)
real(8) function factr(n, d)
subroutine tm3rtoz(l, k, p, r, ld, wkpr, zkpr)
real(8) function wigner3j(j1, j2, j3, m1, m2, m3)