Skip to content

Commit 5a5f0a4

Browse files
author
Release Manager
committed
gh-pr-34963: Add doctest for #20847 Closes #20847. URL: #34963 Reported by: Marc Mezzarobba Reviewer(s): Lorenz Panny
2 parents 8e038e1 + 1692df2 commit 5a5f0a4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/sage/rings/power_series_poly.pyx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1025,6 +1025,13 @@ cdef class PowerSeries_poly(PowerSeries):
10251025
Traceback (most recent call last):
10261026
...
10271027
ValueError: Series must have valuation one for reversion.
1028+
1029+
sage: Series = PowerSeriesRing(SR, 'x')
1030+
sage: ser = Series([0, pi])
1031+
sage: ser
1032+
pi*x
1033+
sage: ser.reverse()
1034+
1/pi*x + O(x^20)
10281035
"""
10291036
if self.valuation() != 1:
10301037
raise ValueError("Series must have valuation one for reversion.")

0 commit comments

Comments
 (0)