7 IMPLICIT REAL*8 (a-h,o-z)
8 REAL*8 xr(3),pr(3),q(4),p(4)
12 r2=
xr(1)**2+
xr(2)**2+
xr(3)**2
22 IF(
xr(1).LT.0.0d0)
THEN
32 p(1)=2.d0*(+q(1)*pr(1)+q(2)*pr(2)+q(3)*pr(3))
33 p(2)=2.d0*(-q(2)*pr(1)+q(1)*pr(2)+q(4)*pr(3))
34 p(3)=2.d0*(-q(3)*pr(1)-q(4)*pr(2)+q(1)*pr(3))
35 p(4)=2.d0*(+q(4)*pr(1)-q(3)*pr(2)+q(2)*pr(3))