group(deprecated)
parity
find the parity of a permutation group or a permutation
Calling Sequence
Parameters
Description
Examples
parity(pg)
parity(perm)
parity(part)
pg
-
permutation group
perm
permutation in disjoint cycle notation
part
partition
Important: The group package has been deprecated. Use the superseding command GroupTheory[PermParity] instead.
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 1 if the parity is even, and it returns −1 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 perm is used, the function returns the parity of perm. The permutation must be in disjoint cycle notation.
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.
with⁡group:
pg1≔permgroup⁡6,1,2,3,2,3,4,3,4,5,4,5,6:
pg2≔permgroup⁡6,1,6,2,6,3,6,4,6,5,6:
parity⁡pg1
1
parity⁡pg2
−1
parity⁡1,2,3,4
parity⁡2,2
parity⁡1,2,3,4,5
parity⁡2,3
See Also
combinat[partition]
group[permgroup]
GroupTheory
GroupTheory[PermParity]
Download Help Document