The perimeter of a polygon: perimeter

### 13.14.7 The perimeter of a polygon: perimeter

See also arcLen, Section 6.19.2.

The perimeter command finds the length of a circle, circular arc or polygon.

- perimeter takes one argument:
  C, a circle, circular arc or a polygon.
- perimeter(C) returns the perimeter of the object.

Examples.

- Input:
  perimeter(circle(0,1))
  Output:

  2 π

- Input:
  perimeter(circle(0,1,pi/4,pi))
  Output:

  3
  4
  | π

- Input:
  perimeter(arc(0,pi/4,pi))
  Output:

  1
  8
  | π 2

- Input:
  perimeter(triangle(0,1,i))
  Output:

  √ |
  2
  | +2

- Input:
  perimeter(square(0,2))
  Output:

  8

The perimeter command has perimeterat and perimeteratraw versions (see Section 13.14.1).