ⓘ This web page is about the old AlgoSim 2 software. Perhaps you are looking for the new Algosim 3 application?
AlgoSim
Homepage | Screenshots | Gallery of Visualisation | User's Guide | Function Reference | Download | FAQ | Support | Bugs and Solutions | Donate

Reference: centerOfMass

centerOfMass(S) returns the center of mass as a real vector in the set S of real vectors.

Example: centerOfMass({❨1, 3, 2❩, ❨2, 1, 3❩, ❨5, 2, 1❩, ❨-1, 2, 3❩, ❨2, 1, 3❩}) = ❨1.75, 2, 2.25❩