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

Commit

Permalink
adding one example in power series
Browse files Browse the repository at this point in the history
  • Loading branch information
fchapoton committed Aug 23, 2022
1 parent c8a57e0 commit 209d54f
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/sage/rings/power_series_poly.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1251,7 +1251,9 @@ cdef class BaseRingFloorDivAction(Action):
This is meant to be a fast internal function, so the
conditions on the input are not checked!
EXAMPLES::
EXAMPLES:
One gets the correct parent with floor division::
sage: A = ZZ[['t']]
sage: f = A([3*2**n for n in range(6)]).O(6)
Expand All @@ -1260,6 +1262,13 @@ cdef class BaseRingFloorDivAction(Action):
sage: g.parent()
Power Series Ring in t over Integer Ring
whereas the parent is larger with division::
sage: parent(f/3)
Power Series Ring in t over Rational Field
Another example::
sage: s = polygen(QQ,'s')
sage: A = s.parent()[['t']]
sage: f = A([(s+2)*(s+n) for n in range(5)]).O(5)
Expand Down

0 comments on commit 209d54f

Please sign in to comment.