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

fixedPoints -- computes the fixed points of a permutation

Description

A permutation $p$ has a fixed point at $i$ if $p(i) = i$. fixedPoints computes all of the fixed points of a permutation.

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

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

o1 : Permutation
i2 : fixedPoints p

o2 = {3}

o2 : List

See also

Ways to use fixedPoints:

  • fixedPoints(Permutation)

For the programmer

The object fixedPoints is a method function.


The source of this document is in /build/reproducible-path/macaulay2-1.25.06+ds/M2/Macaulay2/packages/Permutations/Documentation/mainDocs.m2:304:0.