** suivant:** Composition of a cycle
** monter:** Permutations
** précédent:** Checking for a cycle
** Table des matières**
** Index**

##

Product of two permutations : `p1op2`

`p1op2` takes as arguments two permutations.

`p1op2` returns the permutation obtained by composition :

1^{st}arg`o`2^{nd}arg

Input :
`p1op2([3,4,5,2,0,1],[2,0,1,4,3,5])`

Output :
`[5,3,4,0,2,1]`

**Warning**

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

giac documentation written by Renée De Graeve and Bernard Parisse