Class CyclicGroup
java.lang.Object
org.episteme.core.mathematics.algebra.groups.CyclicGroup
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanTests whether this set contains the specified element.Returns a human-readable description of this set.getOrder()Returns the order of this group.identity()Returns the identity element of this monoid.Returns the inverse of the given element.booleanTests whether this is an abelian (commutative) group.booleanisEmpty()Returnstrueif this set contains no elements.Performs the binary operation on two elements.toString()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Monoid
isAssociative
-
Constructor Details
-
CyclicGroup
public CyclicGroup(long n) Creates a cyclic group of order n.- Parameters:
n- the order of the group (must be > 0)
-
-
Method Details
-
getOrder
-
operate
Description copied from interface:MagmaPerforms the binary operation on two elements.This is the fundamental operation of a magma. The result must be an element of this magma (closure property).
Properties: None required (not necessarily associative or commutative)
-
identity
-
inverse
Description copied from interface:GroupReturns the inverse of the given element.For element a, returns a⻹ such that: a ∗ a⻹ = a⻹ ∗ a = e (identity).
-
isCommutative
public boolean isCommutative()Description copied from interface:GroupTests whether this is an abelian (commutative) group.- Specified by:
isCommutativein interfaceGroup<Integer>- Specified by:
isCommutativein interfaceMagma<Integer>- Returns:
trueif this group is abelian
-
description
Description copied from interface:SetReturns a human-readable description of this set.Examples:
- "â„ (Real Numbers)"
- "ℤ/12ℤ (Integers modulo 12)"
- "{1, 2, 3, 4, 5}"
- Specified by:
descriptionin interfaceSet<Integer>- Returns:
- a description of this set
-
isEmpty
public boolean isEmpty()Description copied from interface:SetReturnstrueif this set contains no elements.The empty set (∅) is a fundamental concept in set theory. It is the unique set containing no elements.
-
contains
Description copied from interface:SetTests whether this set contains the specified element.This is the fundamental operation of a set - membership testing.
-
toString
-