Skip to content

Commit

Permalink
add doctest for #20847
Browse files Browse the repository at this point in the history
  • Loading branch information
mezzarobba committed Feb 7, 2023
1 parent 5c97d67 commit 7e85410
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/sage/rings/power_series_poly.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1025,6 +1025,13 @@ cdef class PowerSeries_poly(PowerSeries):
Traceback (most recent call last):
...
ValueError: Series must have valuation one for reversion.
sage: Series = PowerSeriesRing(SR, 'x')
sage: ser = Series([0, pi])
sage: ser
pi*x
sage: ser.reverse()
1/pi*x + O(x^20)
"""
if self.valuation() != 1:
raise ValueError("Series must have valuation one for reversion.")
Expand Down

0 comments on commit 7e85410

Please sign in to comment.