I have a problem with calculation the center of mass of 20-dimension particles, some thing like this:
A = [1 6 8 54 6 8 5 4 8 9 6 4 7 9 6 6 3 8 43 9] , Mass = 0.25
B = [2 6 3 4 6 8 4 4 8 5 6 4 2 2 6 6 3 8 1 1] , Mass = 0.6
C = [4 3 4 53 6 2 5 21 8 1 6 2 37 2 6 2 3 1 43 9] , Mass = 0.05
Could anyone guide me to find the solution for center of mass in each dimension (x1, x2, ... x20)?
Thanks
The center of mass is simply a weighted average. That is, we will have $$ P_{\text{center}} = \frac{0.25 A + 0.6 B + 0.05 C}{0.25 + 0.6 + 0.05}. $$