Macaulay2 » Documentation
Packages » Permutations :: Permutation ^ ZZ
next | previous | forward | backward | up | index | toc

Permutation ^ ZZ -- computes the power of a permutation

Description

Computes the power of a permutation. The power can be any integer.

i1 : p = permutation {3,1,2,5,4}

o1 = Permutation{3, 1, 2, 5, 4}

o1 : Permutation
i2 : p^2

o2 = Permutation{2, 3, 1}

o2 : Permutation
i3 : p^0

o3 = Permutation{1, 2, 3, 4, 5}

o3 : Permutation
i4 : p^(-3)

o4 = Permutation{1, 2, 3, 5, 4}

o4 : Permutation

Ways to use this method:


The source of this document is in Permutations/Documentation/operationsDocs.m2:361:0.