@2013301021030
2016-06-25T09:43:39.000000Z
字数 1779
阅读 43
第十一次
The motion of planets is described by Newton's law of motion and Newton's law of gravitation. It is also a kind of trajectory problem, so we can get the trajectory of a planet through an ODE. The Inverse-Square law of the gravitation keeps the planet move stably, this law is also applied in electric field. In this program, I confirmed the Inverse-Square law keeps the motion stable, and plot a simple configuration of three planets' orbits. Also, a gif figure was plotted as an 3_D model of the motion of planets.
Since this is a periodic problem, so we use the Euler-Cromer method to solve it. As all the trajectory problems, we use the velocity and position of step to calculate that of step . The looping statement are as follows:
In this program, some configurations are drawn, and the Inverse-Square law is proved.
Finally,thanks for Guo Shuaifei.