geometry - Maple Help

Home : Support : Online Help : Mathematics : Geometry : 2-D Euclidean : Triangle Geometry : geometry/sides

geometry

 sides
 compute the sides of a given triangle or a given square

 Calling Sequence sides(g)

Parameters

 g - triangle or square

Description

 • The routine computes the sides of triangle g or square g.
 • In case g is a triangle, the output is a list of three element denoting the three sides of g.
 • The command with(geometry,sides) allows the use of the abbreviated form of this command.

Examples

 > $\mathrm{with}\left(\mathrm{geometry}\right):$
 > $\mathrm{triangle}\left(\mathrm{ABC},\left[\mathrm{point}\left(A,0,0\right),\mathrm{point}\left(B,3,0\right),\mathrm{point}\left(C,0,4\right)\right]\right):$
 > $\mathrm{sides}\left(\mathrm{ABC}\right)$
 $\left[\sqrt{{9}}{,}\sqrt{{25}}{,}\sqrt{{16}}\right]$ (1)
 > $\mathrm{point}\left(C,0,3\right),\mathrm{point}\left(E,3,3\right):$
 > $\mathrm{square}\left(\mathrm{Sq},\left[A,B,E,C\right]\right):$
 > $\mathrm{sides}\left(\mathrm{Sq}\right)$
 $\frac{{1}}{{2}}{}\sqrt{{18}}{}\sqrt{{2}}$ (2)