private static int Function(QuanternionsGroupElement s)
        {
            switch (s.ToString())
            {
            case "1":
                return(1);

            case "-1":
                return(1);

            case "i":
                return(1);

            case "-i":
                return(1);

            case "j":
                return(-1);

            case "-j":
                return(-1);

            case "k":
                return(-1);

            case "-k":
                return(-1);
            }
            return(0);
        }
 /// <summary>
 /// Create empty group element
 /// </summary>
 public GroupElement()
 {
     this.b = null;
     this.s = null;
 }
 /// <summary>
 /// Create group element using integer & string
 /// </summary>
 /// <param name="b"></param>
 /// <param name="s"></param>
 public GroupElement(int b, string s)
 {
     this.b = new IntModuloNElement(b);
     this.s = new QuanternionsGroupElement(s);
 }
 /// <summary>
 /// Create group element using quanternion & modring objects
 /// </summary>
 /// <param name="b"></param>
 /// <param name="s"></param>
 public GroupElement(IntModuloNElement b, QuanternionsGroupElement s)
 {
     this.b = b;
     this.s = s;
 }