Previous Up Next

2.10.11  Product of two cycles : c1oc2

c1oc2 takes as arguments two cycles.
c1oc2 returns the permutation obtained by composition :

1starg ∘ 2nd arg 

Input :

c1oc2([3,4,5],[2,0,1])

Output :

[1,2,0,4,5,3]

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


Previous Up Next