Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
trac 8550 fix order of SL(2,QQ)
Browse files Browse the repository at this point in the history
  • Loading branch information
Frédéric Chapoton committed Nov 30, 2017
1 parent 20007d5 commit 9892a36
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions src/sage/groups/group.pyx
Expand Up @@ -152,8 +152,9 @@ cdef class Group(Parent):

def order(self):
"""
Returns the number of elements of this group, which is either a
positive integer or infinity.
Return the number of elements of this group.
This is either a positive integer or infinity.
EXAMPLES::
Expand All @@ -163,8 +164,17 @@ cdef class Group(Parent):
Traceback (most recent call last):
...
NotImplementedError
TESTS::
sage: H = SL(2, QQ)
sage: H.order()
+Infinity
"""
raise NotImplementedError
try:
return self.cardinality()
except AttributeError:
raise NotImplementedError

def is_finite(self):
"""
Expand Down

0 comments on commit 9892a36

Please sign in to comment.