Macaulay2 » Documentation
Packages » Permutations :: length(Permutation)
next | previous | forward | backward | up | index | toc

length(Permutation) -- computes the length of a permutation

Synopsis

Description

The length of a permutation is the size of its inversion set.

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

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

o1 : Permutation
i2 : length p

o2 = 3

See also

Ways to use this method: