Function Repository Resource:

RegularPolygonDiagonals

Source Notebook

Find the number of diagonals of a regular polygon

Contributed by: 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]=

Publisher

Wolfram|Alpha Math Team

Version History

  • 2.0.0 – 23 March 2023
  • 1.0.0 – 06 April 2020

Related Resources

License Information