Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Visualize dihedral group symmetries
ResourceFunction["ShowPolygonSymmetries"][n,{s1,s2,…,sk}] applies the dihedral group symmetries {s1,s2,…,sk} in sequence to the regular polygon with n sides showing each step. | |
ResourceFunction["ShowPolygonSymmetries"][n,s] applies the single dihedral group symmetry s to the regular polygon with n sides. |
Rotate a pentagon by two units:
In[1]:= | ![]() |
Out[1]= | ![]() |
Rotate a pentagon by two units and then reflect it by third index. Each pentagon shows the result of transformation after applying the respective operation, with the first one being the original pentagon.
In[2]:= | ![]() |
Out[2]= | ![]() |
Apply a single symmetry:
In[3]:= | ![]() |
Out[3]= | ![]() |
Symmetries can be provided as permutation lists:
In[4]:= | ![]() |
Out[4]= | ![]() |
Visualize all symmetries of a triangle:
In[6]:= | ![]() |
Out[6]= | ![]() |
Wolfram Language 12.0 (April 2019) or above
This work is licensed under a Creative Commons Attribution 4.0 International License