Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Show an array of polygonal numbers
ResourceFunction["PolygonalDiagram"][n,m] gives a regular polygon of n sides with m levels of numbers arranged in equally spaced points. |
Get a diagram with a triangle with four levels:
In[1]:= |
![]() |
Out[1]= |
![]() |
First five triangular numbers and their diagrams:
In[2]:= |
![]() |
Out[2]= |
![]() |
In[3]:= |
![]() |
Out[3]= |
![]() |
Four-level diagrams for various polygonal numbers:
In[4]:= |
![]() |
Out[4]= |
![]() |
Demonstrate the addition of polygonal numbers:
In[6]:= |
![]() |
Out[6]= |
![]() |
Wolfram Language 11.3 (March 2018) or above
This work is licensed under a Creative Commons Attribution 4.0 International License