Wolfram Research

Function Repository Resource:

RegularPolygonDiagonals

Source Notebook

Find the number of diagonals of a regular polygon

Contributed by: Wolfram|Alpha Math Team  |  Wolfram|Alpha Math Team

ResourceFunction["RegularPolygonDiagonals"][n]

returns the number of diagonals of a regular polygon with n sides.

Examples

Basic Examples (2) 

Find the number of diagonals of a regular polygon with 17 sides:

In[1]:=
ResourceFunction["RegularPolygonDiagonals"][17]
Out[1]=

Find the number of diagonals of a regular polygon with 240 sides:

In[2]:=
ResourceFunction["RegularPolygonDiagonals"][240]
Out[2]=

Resource History

Related Resources

License Information