5.9.12 Inverse of a cycle: cycleinv
The inverse of a cycle will be another cycle.
The cycleinv command computes the inverse of a cycle.
-
cycleinv takes one argument:
c, a cycle.
- cycleinv(c) returns the cycle that is the inverse of c.
Example.
Input:
cycleinv([2,0,1])
Output: