This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

Permute

Permute
permutes the positions of the elements of expr according to the permutation perm.
Permute
returns the list of permuted forms of expr under the elements of the permutation group gr.
  • Permute works with any non-atomic expressions, operating on the first level of expressions.
  • Permute reorders the elements of an expression but never changes its length.
  • The permutation perm can be given in disjoint cyclic form or as a permutation list.
  • When perm is given in cyclic form Cycles, a cycle moves the elements of expr in a cyclic manner so that is moved to position .
  • When perm is given as a permutation list, the result is equivalent to the use of Permute[expr, PermutationCycles[perm]].
Cyclic permutation of three elements in a list:
Take the lowercase alphabet:
Exchange the first and last character:
Permute several characters:
Permute an expression under all elements of a group:
Cyclic permutation of three elements in a list:
In[1]:=
Click for copyable input
Out[1]=
 
Take the lowercase alphabet:
In[1]:=
Click for copyable input
Out[1]=
Exchange the first and last character:
In[2]:=
Click for copyable input
Out[2]=
Permute several characters:
In[3]:=
Click for copyable input
Out[3]=
 
Permute an expression under all elements of a group:
In[1]:=
Click for copyable input
Out[1]=
Permute the parts of an expression:
Permute the parts of an expression under all elements of a group:
Give a permutation in list form. The length of the expression does not change:
The eight possible rotations and reflections of a square:
Permute never changes the number of parts of an expression. It simply reorders them:
However, Part can change the number of parts:
When applied to permutation lists, Permute is the inverse of PermutationReplace:
Permute can also be used as an alternative to PermutationList:
Another way of inverting the action of Permute is using FindPermutation:
When all parts of the expression are different, the permutation can be uniquely recovered:
Permute is a right action with respect to the product of permutations:
New in 8