1 SUBROUTINE eqnox(X,GM,Y)
48 IMPLICIT DOUBLE PRECISION (a-h,o-z)
50 dimension v1(3),v2(3),v3(3)
51 DATA zero,one,two/0.d0,1.d0,2.d0/
52 DATA tpi/6.283185307179586d0/
55 y(16)=dsqrt(x(1)**2+x(2)**2+x(3)**2)
56 d2=x(4)**2+x(5)**2+x(6)**2
57 d3=x(1)*x(4)+x(2)*x(5)+x(3)*x(6)
59 y(1)=one/(two/y(16)-d2/gm)
60 y(18)=tpi/dsqrt(gm/y(1)**3)
67 10 v1(i)=d4*x(i)-d5*x(i+3)
69 v2(1)=x(2)*x(6)-x(3)*x(5)
70 v2(2)=x(3)*x(4)-x(1)*x(6)
71 v2(3)=x(1)*x(5)-x(2)*x(4)
73 d1=dsqrt(v2(1)**2+v2(2)**2+v2(3)**2)
99 y(2)=v1(1)*v2(1)+v1(2)*v2(2)+v1(3)*v2(3)
100 y(3)=v1(1)*v3(1)+v1(2)*v3(2)+v1(3)*v3(3)
103 d1=x(1)*v3(1)+x(2)*v3(2)+x(3)*v3(3)
104 d2=x(1)*v2(1)+x(2)*v2(2)+x(3)*v2(3)
109 d3=dsqrt(one-y(2)**2-y(3)**2)
114 d6=y(3)+((one-y(3)*y(3)*d5)*d1-y(2)*y(3)*d5*d2)/d4
115 d7=y(2)+((one-y(2)*y(2)*d5)*d2-y(2)*y(3)*d5*d1)/d4
117 y(6)=y(15)-y(3)*d7+y(2)*d6
118 y(7)=dsqrt(y(2)*y(2)+y(3)*y(3))
119 y(8)=two*datan(dsqrt(y(4)*y(4)+y(5)*y(5)))
120 IF (y(8).NE.zero)
THEN
121 y(9)=datan2(y(4),y(5))
125 IF (y(7).NE.zero)
THEN
126 y(10)=datan2(y(2),y(3))-y(9)
130 y(11)=y(6)-y(9)-y(10)
131 y(12)=y(14)-y(9)-y(10)
132 y(13)=y(15)-y(9)-y(10)
136 y(6)=dmod(y(6)+two*tpi,tpi)
138 40 y(i)=dmod(y(i)+two*tpi,tpi)