Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

permSign

The sign of the permutation


Description

The sign of a permutation equals to the parity of the count of involutions to order the given permutation

Usage

permSign(prm)

Arguments

prm

The permutation to evaluate

Value

The parity of the given permutation. Equals to +1 if even and -1 if it is odd.

See Also

Examples

permSign(c(1,2,3,4))
permSign(c(1,2,4,3))
permSign(c(2,1,4,3))
permSign(c(2,4,1,3))

polyMatrix

Infrastructure for Manipulation Polynomial Matrices

v0.3.1
MIT + file LICENSE
Authors
Tamas Prohle [aut], Peter Prohle [aut], Nikolai Ryzhkov [aut, cre], Ildiko Laszlo [aut] (<https://orcid.org/0000-0003-2324-8183>), Ulas Onat Alakent [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.