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

Commit 209d54f

Browse files
committed
adding one example in power series
1 parent c8a57e0 commit 209d54f

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/sage/rings/power_series_poly.pyx

+10-1
Original file line numberDiff line numberDiff line change
@@ -1251,7 +1251,9 @@ cdef class BaseRingFloorDivAction(Action):
12511251
This is meant to be a fast internal function, so the
12521252
conditions on the input are not checked!
12531253
1254-
EXAMPLES::
1254+
EXAMPLES:
1255+
1256+
One gets the correct parent with floor division::
12551257
12561258
sage: A = ZZ[['t']]
12571259
sage: f = A([3*2**n for n in range(6)]).O(6)
@@ -1260,6 +1262,13 @@ cdef class BaseRingFloorDivAction(Action):
12601262
sage: g.parent()
12611263
Power Series Ring in t over Integer Ring
12621264
1265+
whereas the parent is larger with division::
1266+
1267+
sage: parent(f/3)
1268+
Power Series Ring in t over Rational Field
1269+
1270+
Another example::
1271+
12631272
sage: s = polygen(QQ,'s')
12641273
sage: A = s.parent()[['t']]
12651274
sage: f = A([(s+2)*(s+n) for n in range(5)]).O(5)

0 commit comments

Comments
 (0)