clear clf m = 1; G = 1e-6; M = 3e+6; % initial positions r = ... % initial velocities v = ... tMax = 10.0; %choose a time step dt = ... xt = r(1); yt = r(2); while (t