I want to write program to find the distance between two artificial satellites in space every 't' seconds. My initial inputs are initial velocity, masses , radii, position(x,y coordinates) of both the satellites. Then using Pythagoras theorem I can find the initial distance between the 2 satellites. Then I calculate the force exerted by Satellite 1 on Satellite 2. Using Force/mass i need to find the acceleration and double integrate it to get distance between the 2 satellites. The 2 satellites are continuously revolving in 2 different circular orbit(such that they may collide). I have tried using linear acceleration = Net force/massOfSat1; angular acceleration = linear acceleration/radiusOfSat1; This formula does not give a valid distance as the distance keeps on increasing but I expect that the distance increase and decrease as it is circular motion and the satellites can come near or go far as well . I feel that I am going wrong in using a suitable formula for acceleration. Your help and suggestions will be greatly appreciated.