square - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

Online Help

All Products    Maple    MapleSim


geometry

  

square

  

define a square

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

square(Sq, [A, B, E, F] )

Parameters

Sq

-

the name of the square

A, B, E, F

-

four points

Description

• 

A square is an equilateral and equiangular parallelogram.

• 

A square Sq is defined by a list of four given points in the correct order. For a list of four points A,B,E,F, the condition is that the segments AB, BE, EF, and FA must make a square.

• 

To access the information relating to a square Sq, use the following function calls:

form(Sq)

returns the form of the geometric object

 

(i.e., square2d if Sq is a square).

DefinedAs(Sq)

the list of four vertices of Sq.

diagonal(Sq)

the distance of the diagonal of Sq.

detail(Sq)

returns a detailed description of the object Sq.

• 

The command with(geometry,square) allows the use of the abbreviated form of this command.

Examples

> 

with⁡geometry:

define four points A(0,0), B(1,0), C(1,1) and F(0,1)

> 

point⁡A,0,0,point⁡B,1,0,point⁡C,1,1,point⁡F,0,1:

define the square Sq that have A, B, C, F as its vertices

> 

square⁡Sq,A,B,C,F

Sq

(1)
> 

form⁡Sq

square2d

(2)
> 

map⁡coordinates,DefinedAs⁡Sq

0,0,1,0,1,1,0,1

(3)
> 

diagonal⁡Sq

2

(4)
> 

detail⁡Sq

name of the objectSqform of the objectsquare2dthe four vertices of the square0,0,1,0,1,1,0,1the length of the diagonal2

(5)
> 

area⁡Sq

1

(6)

See Also

geometry/objects

geometry[area]

geometry[MakeSquare]