Documentation of 'jsci.maths.groups.CyclicGroup' Java class
CyclicGroup
jsci.maths.groups

Class CyclicGroup

  • All Implemented Interfaces:
    AbelianGroup, Group, Monoid


    public final class CyclicGroup
    extends FiniteGroup
    implements AbelianGroup
    The CyclicGroup class represents the nth cyclic group. Elements are represented by the integers mod n.
    • Constructor Detail

      • CyclicGroup

        public CyclicGroup(int n)
        Constructs a cyclic group.
        Parameters:
        n - the order of the group
    • Method Detail

      • equals

        public boolean equals(java.lang.Object o)
        Returns true if this group is isomorphic to another.
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getElement

        public jsci.maths.groups.CyclicGroup.Member getElement(int i)
        Returns an element from the group.
        Parameters:
        i - the integer representing the element
      • isZero

        public boolean isZero(AbelianGroup.Member g)
        Returns true if the member is the identity element of this group.
        Specified by:
        isZero in interface AbelianGroup
        Parameters:
        g - a group member
      • isIdentity

        public boolean isIdentity(Monoid.Member g)
        Returns true if the member is the identity element of this group.
        Specified by:
        isIdentity in interface Monoid
        Parameters:
        g - a group member
      • isInverse

        public boolean isInverse(Group.Member a,
                                 Group.Member b)
        Returns true if one member is the inverse of the other.
        Specified by:
        isInverse in interface Group
        Parameters:
        a - a group member
        b - a group member

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.