This question is a classical problem of space mechanics solved step-by-step, to demonstrate the capacities of Scilab in this field.

Read on Scilab.io

Download the script:
myEarthRotation.sci 1,77 kB

Download the full tutorial:
Scilab Orbite Simulation.pdf 1,35 MB