- #1

- 2

- 0

Hey there! I was trying to plot a ODE solution, but am not getting what I should be. It is actually plotting the orbit of Earth with Sun at the origin.

My equations

The (-0.00011847) is GM.

The Initial Conditions:

The plot I get:

Should not I be getting a elliptic/circular plot as the orbital positions of the Earth? Also, here the period is t=1. The position is supposed to be same at t=0 and t=1. Help, please!

My equations

The (-0.00011847) is GM.

The Initial Conditions:

The plot I get:

Should not I be getting a elliptic/circular plot as the orbital positions of the Earth? Also, here the period is t=1. The position is supposed to be same at t=0 and t=1. Help, please!