# The group generated by two permutations: groupermu

### 5.9.14 The group generated by two permutations: groupermu

Given permutations a and b, the group they generate is the set of all possible compositions of any number of as and any number of bs.

The groupermu command computes the group generated by two permutations.

- groupermu takes two arguments:
  a and b, permutations.
- groupermu(a,b) returns the group of the permutations generated by a and b.

#### Example.

Input:

groupermu([0,2,1,3],[3,1,2,0])

Output:

⎡
⎢
⎢
⎢
⎣

0 | 2 | 1 | 3
3 | 1 | 2 | 0
0 | 1 | 2 | 3
3 | 2 | 1 | 0

⎤
⎥
⎥
⎥
⎦