I have to write a computer program to simulate a binary star system and I can not assume that the larger mass is stationary. I am given their respective masses, and the period of the system. I am just wondering how to find the write combination of initial velocity and distance that would result in a stable, closed orbit.
Not sure because I don't believe the equation for a circular orbit applies here because both masses are moving.
The Attempt at a Solution
Don't even know where to start.
Any help with this would be greatly appreciated!