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

Class DihedralGroup

  • All Implemented Interfaces:
    Group, Monoid


    public final class DihedralGroup
    extends FiniteGroup
    The DihedralGroup class represents the nth dihedral group. Elements are represented by rotations and reflections.
    • Constructor Detail

      • DihedralGroup

        public DihedralGroup(int n)
        Constructs a dihedral group.
        Parameters:
        n - the number of rotations/reflections
    • 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
      • 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 element
        b - a group element

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.