what is the formula used for finding out the diagnols of a polygon?
A diagonal of a polygon is a line segment joining two vertices. From any given vertex, there is no diagonal to the vertex on either side of it, since that would lay on top of a side. Also, there is obviously no diagonal from a vertex back to itself. This means there are three less diagonals than there are vertices. (diagonals to itself and one either side are not counted).
Formula for the number of diagonalsAs described above, the number of diagonals from a single vertex is three less than the the number of vertices or sides, or (n-3).
There are N vertices, which gives us n(n-3) diagonals
But each diagonal has two ends, so this would count each one twice. So as a final step we divide by 2, for the final formula:
wher n is the number of sides (or vertices)