FUNCTION: SgTranspo - return a transposition
CALLING SEQUENCE:
- SgTranspo(i)
- SgTranspo(i, n)
- SgTranspo(i, j, n)
- SG[SgTranspo](i)
- SG[SgTranspo](i, n)
- SG[SgTranspo](i, j, n)
-
PARAMETERS:
- n = the degree of a symmetric group
- i = any positive integer
- j = any positive integer
SYNOPSIS:
- The SgTranspo function returns a transposition, that is a permutation
interchanging two values and fixing all others.
- SgTranspo(i) =[1, ..., i+1, i].
- SgTranspo(i,n) =[1, ..., i+1, i, ..., n].
- SgTranspo(i,j,n) =[1, ..., j, ..., i, ..., n].
- Whenever there is a conflict between the function name SgTranspo and
another name used in the same session, use the long form SG['SgTranspo'].
EXAMPLES:
> with(SG):
> SgTranspo(2, 6);
[1, 3, 2, 4, 5, 6]
> SgTranspo(3, 5, 7);
[1, 2, 5, 4, 3, 6, 7]
SEE ALSO: