Function Repository Resource:

# SignedPermutations

Get all signed permutations of a list

Contributed by: Ed Pegg Jr and Jan Mangaldan
 ResourceFunction["SignedPermutations"][list] returns all the signed permutations of list. ResourceFunction["SignedPermutations"][list,spec] returns signed permutations of type spec.

## Details

Possible settings for spec include:
 All all permutations "Cyclic" cyclic permutations like {{0,1,2,3},{1,2,3,0},{2,3,0,1},{3,0,1,2}} "Even" permutations with an even number of transpositions "Odd" permutations with an odd number of transpositions "Symmetric" same as All

## Examples

### Basic Examples (1)

All signed permutations of the list {1,2,3}:

 In[1]:=
 Out[1]=

### Scope (2)

All signed even permutations of the list {1,2,3}:

 In[2]:=
 Out[2]=

All signed cyclic permutations of the list {1,2,3}:

 In[3]:=
 Out[3]=

### Applications (2)

Find the vertices of a rhombic dodecahedron with edge lengths of :

 In[4]:=
 Out[4]=

Use ConvexHullMesh to generate the rhombic dodecahedron from its vertices:

 In[5]:=
 Out[5]=

### Properties and Relations (2)

SignedPermutations[list,All] and SignedPermutations[list,"Symmetric"] are both equivalent to SignedPermutations[list]:

 In[6]:=
 Out[6]=

Count all signed permutations corresponding to a given list, and compare with the expressions for the explicit counts:

 In[7]:=
 Out[7]=
 In[8]:=
 Out[8]=
 In[9]:=
 Out[9]=
 In[10]:=
 Out[10]=
 In[11]:=
 Out[11]=
 In[12]:=
 Out[12]=
 In[13]:=
 Out[13]=

### Possible Issues (2)

Create the 120 unit icosians that make the vertices of the 600-cell:

 In[14]:=
 Out[15]=

The icosians are a closed group under NonCommutativeMultiply (**), but RootReduce was needed for predictable results:

 In[16]:=
 Out[17]=

### Neat Examples (3)

Create vertex sets for all 5 Platonic solids and 13 Archimedean solids with unit edges:

 In[18]:=

Show these sets with a half-unit sphere around each vertex:

 In[19]:=
 Out[19]=

Show the polyhedra:

 In[20]:=
 Out[20]=

## Version History

• 1.0.0 – 08 August 2022