Close
Close window
CenterOfMass - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.
Maplesoft logo
Maplesoft logo

Online Help

All Products Maple MapleSim


[フレーム] [フレーム]

Student[Precalculus]

CenterOfMass

find the center of mass of a set of points

Calling Sequence

CenterOfMass(p1, ...)

Parameters

p1, ...

-

each is an n-element list or Vector specifying a point, or a list whose first element is an n-element list or Vector and whose second element is an algebraic expression specifying the corresponding weight

Description

The command CenterOfMass(p1,p2,...,pn) computes the center of mass of the given points, weighted by the corresponding weights. If a point is given as an n-element list or vector, the corresponding weight is taken to be 1.

All arguments must specify points of the same dimensionality (and orientation, when more than one of the points is a Vector ).

Examples

>

withStudent:-Precalculus:

>

CenterOfMass0,0,1,1

12,12

(1)
>

CenterOfMass0,1,2,0.1,1,2,3,1,3,0,0.5

0.3125000000,2.250000000,2.000000000

(2)
>

CenterOfMassa1,b1,13,a2,b2,23

a13+2a23b13+2b23

(3)


Download Help Document

AltStyle によって変換されたページ (->オリジナル) /