Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Find the number of diagonals of a regular polygon
| ResourceFunction["RegularPolygonDiagonals"][n] returns the number of diagonals of a regular polygon with n sides. | 
Find the number of diagonals of a regular polygon with 17 sides:
| In[1]:= | ![ResourceFunction["RegularPolygonDiagonals"][17]](https://www.wolframcloud.com/obj/resourcesystem/images/60d/60d35e55-cd31-45f0-87c4-94c93069d130/4eaac9bfa604083e.png) | 
| Out[1]= |  | 
Find the number of diagonals of a regular polygon with 240 sides:
| In[2]:= | ![ResourceFunction["RegularPolygonDiagonals"][240]](https://www.wolframcloud.com/obj/resourcesystem/images/60d/60d35e55-cd31-45f0-87c4-94c93069d130/7eb702500551452c.png) | 
| Out[2]= |  | 
This work is licensed under a Creative Commons Attribution 4.0 International License