Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add doctest for #20847 #34963

Merged
merged 1 commit into from
Feb 19, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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