All Packages Class Hierarchy This Package Previous Next Index
Class JSci.maths.groups.CyclicGroup
java.lang.Object
|
+----JSci.maths.DiscreteSet
|
+----JSci.maths.groups.DiscreteGroup
|
+----JSci.maths.groups.CyclicGroup
- public final class CyclicGroup
- extends DiscreteGroup
The CyclicGroup class represents the nth order cyclic group.
Elements are represented by strings.
-
CyclicGroup(int)
- Constructs a cyclic group.
-
compose(Object, Object)
- The group composition law.
-
identity()
- Returns the identity element.
-
inverse(Object)
- Returns the inverse element.
CyclicGroup
public CyclicGroup(int n)
- Constructs a cyclic group.
- Parameters:
- n - order of group
compose
public Object compose(Object a,
Object b)
- The group composition law.
- Parameters:
- a - a group element
- b - a group element
- Overrides:
- compose in class DiscreteGroup
identity
public Object identity()
- Returns the identity element.
- Overrides:
- identity in class DiscreteGroup
inverse
public Object inverse(Object a)
- Returns the inverse element.
- Overrides:
- inverse in class DiscreteGroup
All Packages Class Hierarchy This Package Previous Next Index