Returns the order of a permutation P: the smallest strictly positive integer n for which P^n is the identity.
1 |
x |
Permutation, coerced to |
singly |
Boolean, with default |
Coerces its argument to cycle form.
The order of the identity permutation is 1.
Uses mLCM()
from the numbers
package.
Robin K. S. Hankin
sgn
1 2 3 4 5 6 |
Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.
All documentation is copyright its authors; we didn't write any of that.