1 REAL*8 FUNCTION rpmax2(R1,R2,M1,M2,KS1,KS2,VINF)
10 REAL*8 r1,r2,m1,m2,vinf,m21,a(8),b(2),p(2)
12 DATA a /-600.2227,3538.748,1703.075,77.31540,
13 & 191.8260,-2.203482,1202.116,70.80281/
32 IF(ks(i).EQ.0.OR.ks(i).EQ.3.OR.ks(i).EQ.5.OR.
33 & ks(i).EQ.6.OR.ks(i).EQ.9)
THEN
40 p(i) = (((a(ip+3)*m21 + a(ip+2))*m21 + a(ip+1))*m21
45 z = p(1) + (r21**5/m21**2)*p(2)