### 11.14.7 The perimeter of a polygon: perimeter

See also arcLen, section 5.17.2.

The perimeter command takes as argument a circle, circular arc or a polygon.

perimeter returns the perimeter of the object.
Input:

perimeter(circle(0,1))

Output:

2*pi

Input:

perimeter(circle(0,1,pi/4,pi))

Output:

3*pi/4

Input:

perimeter(arc(0,pi/4,pi))

Output:

pi^2/8

Input:

perimeter(triangle(0,1,i))

Output:

2+sqrt(2)

Input:

perimeter(square(0,2))

Output:

8

The perimeter command has perimeterat and perimeteratraw versions (see section 11.14.1).