Previous Up Next

13.6.10  The barycenter in the plane: barycenter

See Section 14.4.6 for barycenters of objects in space.

The barycenter command returns and draws the barycenter of a set of weighted points.


Example.
The following commands will draw the barycenter of the points (1,1) with weight 1, (1,−1) with weight 1 and (1,4) with weight 2.
Input:

barycenter([1 + i,1],[1 - i,1],[1 + 4*i, 2])

or:

barycenter([[1 + i,1],[1 - i,1],[1 + 4*i, 2]])

or:

barycenter([[1 + i, 1 - i, 1 + 4*i],[1,1,2]])

Output:


Previous Up Next