Previous Up Next

5.10.10  Composition of a permutation and a cycle : p1oc2

p1oc2 takes as arguments a permutation and a cycle.
p1oc2 returns the permutation obtained by composition :

1starg ∘ 2nd arg 

Input :


Output :


Composition is done using the standard mathematical notation, that is the cycle given as second argument is performed first.

Previous Up Next