D H said:
Start with the vector form you quoted from wikipedia:
\mathbf F_{12} = -G\frac{m_1m_2}{|\mathbf r_{12}|^2}\hat{\mathbf r}_{12}
Let m(i) = 100 kg
Let m(j) = 999,999 kg
Let m(i) have its center at coordinates [0, 0, 0] meters
Let m(j) have its center at coordinates [500, 0, 0] meters
m(i)= mass 1, m(j)= mass 2, G= constant, R= unit vector
r= distance from the center of mass1 to the center of mass 2
=================================================
r= sqrt(dx*dx + dy*dy + dz*dz)
r= sqrt(500*500 + 0*0 + 0*0)
r= sqrt(250,000)
r= 500 meters
Solve for mass 1:
-----------------
F(i,j)= -G * m(i)*m(j) * R /r^2
F(i,j)= -G * 100 * 999,999 * [(0 - 500)/500, 0/500, 0/500] / 500^2
F(i,j)= -G * 99,999,900 * [-1, 0, 0] / 250,000
F(i,j)= -G * [-400, 0, 0]
F(i,j)= [G * 400, 0, 0]
F = m * a
a(i)= F(i,j) / m(i)
a(i)= [G * 400, 0, 0] / 100
vector_a(i)= [G * 4, 0, 0]
Solve for mass 2:
-----------------
F(j,i)= -G * m(j)*m(i) * R /r^2
F(j,i)= -G * 999,99 * 100 * [(500 - 0)/500, 0/500, 0/500] / 500^2
F(j,i)= -G * 99,999,900 * [1, 0, 0] / 250,000
F(j,i)= [-G * 400, 0, 0]
F = m * a
a(j)= F(j,i) / m(j)
a(j)= [-G * 400, 0, 0] / 999,999
vector_a(j)= [-G * 0.0004, 0, 0]
If you do this for all the planetary pairs in the solar system, all the planets, moons and the sun, it works very well. Depending on the precision and time you want to invest you can get extremely precise results (past or future predictions), not only for days, months and years but the system stays stable for millions of years and errors you get are largely due to floating point precision, size of delta-time and the measurement data you set as initial conditions.
\mathbf F_{12} = -G\frac{m_1m_2}{|\mathbf r_{12}|^2}\hat{\mathbf r}_{12}
This is "the force applied on object 2 due to object 1".
This is probably just a matter of phrasing in the context of what you going to say next, but let me say that the force is not relative in that way, it's the same from object 2 to object 1 and from object 1 to object 2, only direction is opposite and that is why we have unit vector in that equation, so to give us the direction vector and the same equation works for both objects equally well.
Dividing this by the mass of object 2 yields the acceleration of object 2 induced by the gravitational interaction between the two objects.
\mathbf a_{12} = -\,\frac{Gm_1}{|\mathbf r_{12}|^2}\hat{\mathbf r}_{12}
The unit vector \hat{\mathbf r}_{12} is the vector from object 1 to object 2 scaled by the distance between the objects. Thus
\mathbf a_{12} = -\,\frac{Gm_1}{|r_{12}|^3}\mathbf r_{12}
Unit vector has scalar value of
1, it is only there so to gives us correct sign, correct direction, but I'm afraid that equation will not come up right with three dimensional vectors, as you just lost two dimensions with that conversion. Anyway, for the example given above, with both masses on the same axis, that equation does work, but it produces scalar not vector value.
a(j)= -G * m(i) * r / r^3
a(j)= -G * 100 * 500 / 125,000,000
X_axis_a(j)= -G * 0.0004
To make this correct it needs to be noted that it works with individual vector components or just with two objects on the same axis, so if you want to make it work in 3-D, then "r" is not the real distance "r", but it's either r[X], r[Y] or r[Z] component, and "r^2" is then really equal to (dx*dx + dy*dy + dz*dz).
Now denote |\mathbf r_{12}|\equiv r_{12} = r_{21} and using \mathbf r_{12} = - \mathbf r_{21} yields
\mathbf a_{12} = \frac{Gm_1}{r_{21}^3}\mathbf r_{21}
Compare this to the form in the link,
\mathbf \ddot{\mathbf r}_i =<br />
\sum_{j\ne i} \frac{\mu_j}{r_{ji}^3}\mathbf r_{ji}(1 + \text{relativistic terms})
The only differences in these two forms are
- The former represents the acceleration due to the one interaction while the latter represents the acceleration due to the totality of mass in the solar system,
- The latter expression incorporates "relativistic terms", and
- The former expression uses Gm_1 while the latter uses \mu_j.
Astronomers can assess the http://en.wikipedia.org/wiki/Standard_gravitational_parameter" \mu_j to a high degree of accuracy (more than 10 decimal places for the Sun, almost 9 for the Earth). In comparison, G is know to a paltry 4 decimal places.
1.) I take it that "r(i)" stands for acceleration then, but why not "a(i)"? Anyway, if you put the "sum sign" in front of the first equation and instead of the index (1,2) place (i,j), then you would also get the "totality of the mass". It's just a way to denote an algorithm, it's nothing more but vectors addition where you cycle through all the pairs of the system.
It means that if you have Sun, Venus, Mars, Earth and Moon, you need to calculate the force between all the pairs, like this:
F(Sun-Venus), F(Sun-Mars), F(Sun-Earth), F(Sun-Moon), F(Venus-Mars), F(Venus-Earth), F(Venus-Moon), F(Mars-Earth), F(Mars-Moon), F(Earth-Moon)... then calculate acceleration for each side and then sum all those acceleration vectors for each mass.
2.) I wonder how much different result you get with all the relativistic terms. Could you solve that equation for the example given above so we can compare?
3.) You have to have both masses and so I suspect that variable 'mu' contains the mass of the second body m(j). Therefore we can use it just the same in classical equations without any relativistic terms. In other words, I'm pretty sure that if we divide 'mu' by m(j) we get constant G with whatever precision 'mu' has.
I'm not sure what to conclude... equations do seem to be very similar, if not identical, but your equation is not 3-D friendly, it throws away that vector and if not careful that can lead to wrong implementation in three dimensional space.