geometry - Maple Programming Help

# Online Help

###### All Products    Maple    MapleSim

Home : Support : Online Help : Mathematics : Geometry : 2-D Euclidean : Polygon Functions : geometry/diagonal

geometry

 diagonal
 return the length of the diagonal of a square

 Calling Sequence form(Sq)

Parameters

 Sq - square

Description

 • The routine returns the length of the diagonal of the given square Sq.
 • The command with(geometry,diagonal) 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,1,0\right),\mathrm{point}\left(C,1,1\right),\mathrm{point}\left(F,0,1\right):$
 > $\mathrm{square}\left(\mathrm{Sq},\left[A,B,C,F\right]\right)$
 ${\mathrm{Sq}}$ (1)
 > $\mathrm{diagonal}\left(\mathrm{Sq}\right)$
 $\sqrt{{2}}$ (2)

 See Also

## Was this information helpful?

 Please add your Comment (Optional) E-mail Address (Optional) What is ? This question helps us to combat spam