Center of Mass - Matrix Representation
|
04-08-2015, 07:35 PM
Post: #6
|
|||
|
|||
RE: Center of Mass - Matrix Representation
The following program computes the center of mass for arbitrary arrangements of mass points in 3D cartesian space. For a system consisting of n particles the input is a n-by-4 matrix, e.g. the x, y, z coordinates in the the first three columns and the masses in the forth column.
Code: EXPORT CG(xyzm) Using akmon's example: Code: CG([[0 0 0 1][5 0 0 1][5 5 0 1]]) = [3.333333333 1.666666667 0] = [10/3 5/3 0] |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Center of Mass - Matrix Representation - Eddie W. Shore - 04-05-2015, 04:05 AM
RE: Center of Mass - Matrix Representation - akmon - 04-05-2015, 10:29 PM
RE: Center of Mass - Matrix Representation - salvomic - 04-06-2015, 03:09 PM
RE: Center of Mass - Matrix Representation - akmon - 04-07-2015, 06:33 AM
RE: Center of Mass - Matrix Representation - Thomas Ritschel - 04-08-2015, 05:48 PM
RE: Center of Mass - Matrix Representation - chromos - 07-03-2015, 03:40 PM
RE: Center of Mass - Matrix Representation - Thomas Ritschel - 04-08-2015 07:35 PM
RE: Center of Mass - Matrix Representation - akmon - 04-09-2015, 10:48 AM
|
User(s) browsing this thread: 1 Guest(s)