Why does the moon spiral towards Earth in simulation?
Why does the moon spiral towards Earth in simulation? Question: I am trying to simulate a somewhat realistic program where Earth and the moon can interact gravitationally with each other. Now the problem is that the moon keeps on spiraling towards Earth and I don’t understand why. This is my code: from math import sin,cos,sqrt,atan2,pi …