|
SOLUTIONS
|
BUILT-IN MATHEMATICA SYMBOL
PermutationPower
PermutationPower[perm, n]
gives the n
permutation power of the permutation perm.
DetailsDetails
- PermutationPower[perm, n] effectively computes the product of a permutation perm with itself n times.
- When n is negative, PermutationPower finds powers of the inverse of the permutation perm.
- PermutationPower[perm, 0] gives the identity permutation.
ExamplesExamplesopen allclose all
Basic Examples (3)Basic Examples (3)
| In[1]:= |
| Out[1]= |
Second power of the inverse permutation:
| In[1]:= |
| Out[1]= |
PermutationPower can yield the identity permutation:
| In[1]:= |
| Out[1]= |
New in 8
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »
