Go to the documentation of this file. 1 subroutine frs(xx,xr,xi,rfsea)
7 implicit real*8 (a-h,o-z)
9 cost=dcos(xx*3.1415926d0/180.d0)
11 sinsq = (1.0d0-cost**2)
13 a = (xr**2-xi**2 -1.0d0 + cost**2)
14 b = (-2.0d0 * xr * xi)
15 r = dsqrt(a**2 + b**2)
17 xp = dsqrt(2.0d0*r + 2.0d0*a)
18 xmm = (2.0d0*r - 2.0d0*a)
19 if(xmm .lt. 0.0d0 .and. xmm .gt. xzx) xmm=-xmm
21 dnmr1 = (sinsq2 + tmr + cost*sinsq*xp)
22 qrmu = (sinsq2 - tmr)/dnmr1
23 qimu = (cost*sinsq*xm)/dnmr1
24 dnmr2 = (cost**2 + r + cost*xp)
25 rrr = (cost**2 - r)/dnmr2
27 rer = qrmu*rrr - qimu*rri
28 rei = qimu*rrr + qrmu*rri
31 r33 = rer*rrr + rei*rri
32 r34 = rri*rer - rei*rrr
subroutine frs(xx, xr, xi, rfsea)