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

Commit

Permalink
doctests for exp are now actually tested
Browse files Browse the repository at this point in the history
  • Loading branch information
behackl committed Sep 1, 2015
1 parent 8ff9e7b commit 2e3dec4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/sage/rings/asymptotic/asymptotic_ring.py
Original file line number Diff line number Diff line change
Expand Up @@ -1455,19 +1455,19 @@ def exp(self, precision=None):
EXAMPLES::
sage: A.<x> = AsymptoticRing('SR^x * x^ZZ * log(x)^ZZ', SR)
sage: exp(x) # not tested
sage: exp(x)
e^x
sage: exp(2*x) # not tested
sage: exp(2*x)
(e^2)^x
sage: exp(x + log(x)) # not tested
sage: exp(x + log(x))
e^x*x
::
sage: exp(x^(-1)) # not tested
1 + x^(-1) + 1/2*x^(-2) + 1/6*x^(-3) + ... + O(x^(-21))
sage: (x^(-1)).exp(precision=7)
1 + x^(-1) + 1/2*x^(-2) + 1/6*x^(-3) + ... + O(x^(-7))
"""
return self._rpow_('e')
return self._rpow_(precision=precision)



Expand Down

0 comments on commit 2e3dec4

Please sign in to comment.