We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bcac6d4 commit aa0ba80Copy full SHA for aa0ba80
src/sage/groups/perm_gps/permgroup.py
@@ -1370,7 +1370,8 @@ def is_trivial(self):
1370
Return ``True`` if this group is the trivial group.
1371
1372
A permutation group is trivial, if it consists only of the
1373
- identity element, that is, if it has no generators.
+ identity element, that is, if it has no generators or only
1374
+ the trivial generator.
1375
1376
EXAMPLES::
1377
@@ -1385,6 +1386,7 @@ def is_trivial(self):
1385
1386
False
1387
sage: DihedralGroup(1).is_trivial()
1388
1389
+
1390
"""
1391
return not self._gens or (len(self._gens) == 1 and self._gens[0].is_one())
1392
0 commit comments