Previous Up Next

2.10.14  Inverse of a cycle : cycleinv

cycleinv takes as argument a cycle.
cycleinv returns the cycle that is the inverse of the cycle given as argument.
Input :

cycleinv([2,0,1])

Output

[1,0,2]

Previous Up Next