Ticket #4383: trac_4383-order-trivial-permgp.patch

File trac_4383-order-trivial-permgp.patch, 690 bytes (added by wdj, 12 years ago)

based on 3.2.alpha1

  • sage/groups/perm_gps/permgroup.py

    # HG changeset patch
    # User David Joyner <wdjoyner@gmail.com>
    # Date 1225393165 14400
    # Node ID 4c14cc618882892b8957eca1c54e60a789d5c4d3
    # Parent  67e0603ac89003d15b4c69257b0daad0f44db95f
    bug in order for trivial group - wdj
    
    diff -r 67e0603ac890 -r 4c14cc618882 sage/groups/perm_gps/permgroup.py
    a b  
    767767            sage: G.order()
    768768            12
    769769        """
     770        G = self
     771        if G.gens()==[] or G.gens()==[G(1)]:
     772            return Integer(0)
    770773        return Integer(self._gap_().Size())
    771774
    772775    def random_element(self):