1 SUBROUTINE histab(IPAIR,J,PMIN,RSTAB)
18 semi = -0.5d0*body(i)/h(ipair)
19 ecc2 = (1.0d0 - r(ipair)/semi)**2 + tdot2(ipair)**2/(body(i)*semi)
38 rij2 = rij2 + (x(k,i) - x(k,j))**2
39 vij2 = vij2 + (xdot(k,i) - xdot(k,j))**2
40 rdot = rdot + (x(k,i) - x(k,j))*(xdot(k,i) - xdot(k,j))
43 a1 = 2.0/rij - vij2/(body(i) + body(j))
53 ecc2 = (1.0 - rij/semi1)**2 + rdot**2/(semi1*(body(i) + body(j)))
55 pmin = semi1*(1.0 - ecc1)
60 xfac = (1.0 + q)*(1.0 + ecc1)/sqrt(1.0 - ecc1)
64 pcrit = 2.8*xfac**0.4*semi
67 IF ((pcrit.GT.1.5*pmin.OR.pcrit.LT.0.5*pmin).AND.j.LE.n)
THEN
75 semi2 = -0.5d0*body(j)/h(j-n)
77 yfac = 1.0 + 0.1*min(semi2/semi,semi/semi2)
78 IF (semi2.GT.semi)
THEN
79 ecc2 = (1.0 - r(j-n)/semi2)**2 +
80 & tdot2(j-n)**2/(body(j)*semi2)
96 IF (gamma(ipair).LT.gmin.OR.x(1,i1).EQ.x(1,i2))
THEN
109 CALL
inclin(xx,vv,x(1,i),xdot(1,i),angle)
112 rstab =
stability(body(i1),body(i2),body(jj),ecc,ecc1,angle)*semi