 geometry - Maple Programming Help

Home : Support : Online Help : Mathematics : Geometry : 2-D Euclidean : Line Segments : geometry/midpoint

geometry

 midpoint
 find the midpoint of segment joining two points

 Calling Sequence midpoint(C, A, B) midpoint(C, seg)

Parameters

 C - the name of the midpoint A, B - two points seg - segment

Description

 • The routine finds the midpoint of two points A, B, or of a segment seg.
 • For a detailed description of the midpoint C, use the routine detail (i.e., detail(C))
 • The command with(geometry,midpoint) allows the use of the abbreviated form of this command.

Examples

 > $\mathrm{with}\left(\mathrm{geometry}\right):$
 > $\mathrm{point}\left(A,0,0\right),\mathrm{point}\left(B,2,0\right):$
 > $\mathrm{midpoint}\left(\mathrm{C1},A,B\right)$
 ${\mathrm{C1}}$ (1)
 > $\mathrm{coordinates}\left(\mathrm{C1}\right)$
 $\left[{1}{,}{0}\right]$ (2)
 > $\mathrm{segment}\left(\mathrm{seg},\left[A,B\right]\right):$
 > $\mathrm{midpoint}\left(\mathrm{C2},\mathrm{seg}\right):$
 > $\mathrm{detail}\left(\mathrm{C2}\right)$
 $\begin{array}{ll}{\text{name of the object}}& {\mathrm{C2}}\\ {\text{form of the object}}& {\mathrm{point2d}}\\ {\text{coordinates of the point}}& \left[{1}{,}{0}\right]\end{array}$ (3)