Macaulay2 » Documentation
Packages » Permutations :: isEven
next | previous | forward | backward | up | index | toc

isEven -- whether a permutation is even

Description

A permutation $p$ is even if it can be written as a product of an even number of transpositions. Equivalently, a permutation is even if its sign is $1$.

i1 : p = permutation {3,1,2,5,4}

o1 = Permutation{3, 1, 2, 5, 4}

o1 : Permutation
i2 : isEven p

o2 = false

See also

Ways to use isEven:

  • isEven(Permutation)

For the programmer

The object isEven is a method function.


The source of this document is in Permutations/Documentation/mainDocs.m2:420:0.