jsci.maths.groups
Class QuaternionGroup
- java.lang.Object
-
- jsci.maths.groups.FiniteGroup
-
- jsci.maths.groups.QuaternionGroup
-
public final class QuaternionGroup extends FiniteGroup
The QuaternionGroup class represents the quaternion group.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description Group.Member[]getElements()Returns the elements of this group.static QuaternionGroupgetInstance()Constructs the quaternion group.Monoid.Memberidentity()Returns the identity element.booleanisIdentity(Monoid.Member a)Returns true if the element is the identity element of this group.booleanisInverse(Group.Member a, Group.Member b)Returns true if one element is the inverse of the other.java.lang.StringtoString()-
Methods inherited from class jsci.maths.groups.FiniteGroup
order
-
-
-
-
Method Detail
-
getInstance
public static final QuaternionGroup getInstance()
Constructs the quaternion group. Singleton.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getElements
public Group.Member[] getElements()
Returns the elements of this group.- Specified by:
getElementsin classFiniteGroup
-
identity
public Monoid.Member identity()
Returns the identity element.
-
isIdentity
public boolean isIdentity(Monoid.Member a)
Returns true if the element is the identity element of this group.- Parameters:
a- a group element
-
isInverse
public boolean isInverse(Group.Member a, Group.Member b)
Returns true if one element is the inverse of the other.- Parameters:
a- a group elementb- a group element
-
-
DMelt 3.0 © DataMelt by jWork.ORG