OrderOfElement
The order of a group element, the least n ≥ 1 with the identity, or Infinity when there is none.
OrderOfElement(g)The Monoid protocol's member for the order of an element, answered by whichever type g belongs to.Typed signatures
| Type | Package | Applies |
|---|---|---|
(any) -> unknown | residuesreplaces structures | on IntegerMod, ResidueClass |
(any) -> unknown | structures | always |
Details
- The
Monoidprotocol's member: a type conforms by saying how it finds the order of one of its values. Not namedOrder, which is Wolfram's comparisonOrder[a, b]. - A permutation's order is the lcm of its cycle lengths: PermutationOrder's value.
- A unit of , a
ResidueClass, has MultiplicativeOrder's value. A non-unit has no order (no power of it reaches 1) and stays unevaluated. - Among the exact numbers, only roots of unity have finite order: 1 has order 1, has order 2, and have order 4, and every other rational or Gaussian rational has infinite order. An inexact or symbolic number stays unevaluated.
- A matrix stays unevaluated: finite order is detectable by repeated multiplication, but infinite order is not, so none is guessed.
Examples
Basic #
Scope #
Properties #
Possible issues #
See also: PermutationOrder, MultiplicativeOrder