/***********************************************/ /* Restricted Three-Body Problem */ /* Simulation Program */ /* */ /* 1997.9.26 by Ryoji Matsumoto */ /***********************************************/ #include #include #include main() { double x,y,vx,vy,t,dt,tmax,r,r3; double k0[4],k1[4],k2[4],k3[4]; double x1,y1,vx1,vy1,x2,y2,vx2,vy2; double x3,y3,vx3,vy3,x4,y4,vx4,vy4; double xa,ya,xb,yb,ra,rb,ra3,rb3; xa=0.0; ya=0.0; xb=1.0; yb=0.0; scanf("%lf %lf %lf %lf %lf %lf",&x,&y,&vx,&vy,&dt,&tmax); for(t=0;t