The Faulty Orbit of a Planet.

The Orbit with calculation flaw by following algorithm: 
a = -G*M/(R2);

ax = a*X/R;   ay = a*Y/R;
Vx = Vx + ax*dt;  Vy = Vy + ay*dt;
X = X + Vx*dt;  Y = Y + Vy*dt;
Start values:
dt = 0.2; X = 0.6, Y = 0;
Vx = 0, Vy = 1.63, ax = 0, ay = 0;

You may change this values!
 

Back