/***********************************************/ /* Two-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; scanf("%lf %lf %lf %lf %lf %lf",&x,&y,&vx,&vy,&dt,&tmax); for(t=0;t