Length of a Line Segment in 2-D - Maple Programming Help

Home : Support : Online Help : Tasks : Geometry : Distance in 2-D : Task/LengthOfLineSegmentIn2D

Length of a Line Segment in 2-D

 Description Measure the length of a line segment in two-dimensional space.

Specify the first endpoint.

 > $\mathrm{geometry}\left[\mathrm{point}\right]\left(a,{1}{,}{4}\right)$
 ${a}$ (1)

Specify the second endpoint.

 > $\mathrm{geometry}\left[\mathrm{point}\right]\left(b,{2}{,}{-}{2}\right)$
 ${b}$ (2)

Define the line segment using the two points.

 > $\mathrm{geometry}\left[\mathrm{segment}\right]\left(s,a,b\right)$
 ${s}$ (3)

Measure the length of the line segment.

 > $\mathrm{geometry}\left[\mathrm{distance}\right]\left(s\right)$
 $\sqrt{{37}}$ (4)
 Commands Used