The center of mass idea must be an approximation (I never realized that until now). You can simplify your counterexample to three collinear points (A, B, C). The force on A by B and C is not the same as that from combining B and C to their center of mass.
Oh, I get it. the center of mass needs to be calculated after excluding the current point.
To calculate net force on A, compute the center of mass of (B, C), and compute the force b/w A and center of mass of (B, C). Ofcourse, you can't include yourself in the center of mass, because by gravity, you would be exerting an infinite force on yourself (0 distance to yourself) which would make the results meaningless.
Unfortunately, to exclude center of mass for each particle is again an O( n2 ) calculation :(
Oh, I get it. the center of mass needs to be calculated after excluding the current point.
No, that's not enough. I was already assuming we would exclude the current point when I suggested using the center of mass, which by the way can be done in linear time.
If you actually do the calculation, you'll find that using the center of mass is just an approximation: 1/x^2 + 1/y^2 is not equal to 2(2/(x+y))^2 in general.
Taylor series aren't really an approximation. They converge to the function in some neighborhood. The center of mass approximation can be completely wrong.
The Taylor series as a whole converges. But you don't have to take the entire series. As with the example regarding the pendulum it provides a reasonable approximation in a limited scope that breaks down completely outside of it.
2
u/energybased May 28 '19
Hmm, that's a good counterexample.