Oops. I forgot to put a ^-1 on the M. Here's a fixed equation:
P=(1/G^n)*2pi*r^((1-e)/2), where n is the correct exponent for this equation to work (still trying to find the right n value, probably 0<n<2)
For e=-3, orbital velocity is basically reduced to 1/r. Since doubling the distance divides the force of gravity by 8, this means that the velocity is basically equal to the force times the area of the orbit (for a circle), because doubling the distance results in half the velocity. Assume that v=1 and G=1 at r=1, v=2 and G=8 at r=0.5. In that case, r=0.5 means the area is only 0.25A, where A=pi*r^2, and v=8*0.25=2. I'm still trying to find the equation for escape velocity. It's infinite for e=-1, but it's equal to the orbital velocity for e=-3, and less than the orbital velocity for e<-3, so I'm considering esc=v*sqrt(-2/(1+e)) as a possibility.
Test for e=-3, v=1, esc=1 (slowed the 2nd and 3rd bodies by a small amount to prevent them from escaping, they'll eventually hit the sun):
Code: Select all
Gravity Fun at TestTubeGames.com: [ForceG: -3,Qual: 1,Zoom: 0.75,xSet: 0,ySet: 0], [x0: 0,y0: 0,vx: 0,vy: 0,t0: 0,who: 1,m: 2000], [x0: 52,y0: -3,vx: -0.4945229585329429,vy: -8.571731281237678,t0: 0,who: 3,m: 0], [x0: 52,y0: -3,vx: -0.4944229585329429,vy: -8.571631281237678,t0: 115.2,who: 3,m: 0], [x0: 52,y0: -3,vx: 0.4944229585329429,vy: -8.571631281237679,t0: 230.4,who: 3,m: 0]
Test for e=-9, v=1, esc=0.5 (same as above, but 1st body eventually escapes due to software limitations):
Code: Select all
Gravity Fun at TestTubeGames.com: [ForceG: -9,Qual: 1,Zoom: 0.75,xSet: 0,ySet: 0], [x0: 0,y0: 0,vx: 0,vy: 0,t0: 0,who: 1,m: 2000], [x0: 77.33,y0: -1.33,vx: -0.10746708580786686,vy: -6.248443417685973,t0: 0,who: 3,m: 0], [x0: 77.33,y0: -1.33,vx: -0.21493417161573372,vy: -12.496886835371946,t0: 64.8,who: 3,m: 0], [x0: 77.33,y0: -1.33,vx: 6.248343417685973,vy: -0.10745708580786686,t0: 129.6,who: 3,m: 0]
The equation seems to be holding so far.
If (for e=1) c were to equal 299792458, then objects wouldn't be able to orbit beyond a certain distance. For e=100, the problem is even worse, as an object would only have to be 1.2 times as far away to start feeling relativistic effects from the immense gravity. For e=-100, every object with mass would become a black hole due to the same problem.