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

Commit

Permalink
improve doctests of _an_element_
Browse files Browse the repository at this point in the history
  • Loading branch information
dkrenn committed Aug 17, 2015
1 parent c486e99 commit 0a13882
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/sage/groups/asymptotic_growth_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -674,9 +674,12 @@ def _an_element_(self):
EXAMPLES::
sage: import sage.groups.asymptotic_growth_group as agg
sage: G = agg.GenericGrowthGroup(ZZ);
sage: G.an_element() # indirect doctest
sage: agg.GenericGrowthGroup(ZZ).an_element() # indirect doctest
GenericGrowthElement(1)
sage: agg.MonomialGrowthGroup(ZZ, 'z').an_element() # indirect doctest
z
sage: agg.MonomialGrowthGroup(QQ, 'log(z)').an_element() # indirect doctest
log(z)^(1/2)
"""
return self.element_class(self, self.base().an_element())

Expand Down

0 comments on commit 0a13882

Please sign in to comment.