group[parity] - find the parity of a permutation group or a permutation
|
Calling Sequence
|
|
parity(pg)
parity(perm)
parity(part)
|
|
Parameters
|
|
pg
|
-
|
permutation group
|
perm
|
-
|
permutation in disjoint cycle notation
|
part
|
-
|
partition
|
|
|
|
|
Description
|
|
•
|
The function determines the parity of a permutation group, an individual permutation, or a permutation with a cycle type given by a partition. The function returns if the parity is even, and it returns if the parity is odd. The parity of a permutation is also called the sign of a permutation.
|
•
|
If pg is used, the function returns the parity of pg. The parity of a permutation group is even if all of its elements are even; otherwise, it is odd.
|
•
|
If part is used, the function returns the parity of all permutations with the cycle type described by part.
|
•
|
The command with(group,parity) allows the use of the abbreviated form of this command.
|
|
|
Examples
|
|
>
|
|
>
|
|
>
|
|
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
| (3) |
>
|
|
| (4) |
>
|
|
| (5) |
>
|
|
| (6) |
|
|
Download Help Document
Was this information helpful?