Quote:Original post by Anonymous Poster
Quote:Original post by erissian
This is definitely wrong it should be this:
dMomentum=sqrt( dMomentumX*dMomentumX + dMomentumY*dMomentumY + dMomentumZ*dMomentumZ );
No, it doesn't really matter. The momentum in each axis is conserved independently. In reality, the momentums shouldn't be added together at all. Each should be viewed separately. Each should be constant for the system. Their sum and the sum of their squares are physically meaningless quantities that should also be constants. You could add energy to momentum and expect that to be a constant too. It just doesn't mean anything.
If you look at his code, you'll see that these aren't derivates, but the values for momentum. He is trying to find the total momentum for the system in which case the simple summation is wrong, and it does matter.
Even if he were seeking the derivates, it would be important to properly evaluate the total momentum vector, because a solar system is a rotating system. Momentum vectors only conserve independently in systems with independant rectilinear forces. Because this system has all bodies orbiting the center of mass of the system, you cannot wash your hands of proper evaluation.
If the number is meaningless, then it should not have been included in the first place, but it is exactly what he is trying to evaluate. Please read the thread more carefully.
We''re sorry, but you don''t have the clearance to read this post. Please exit your browser at this time. (Code 23)