@@ -252,8 +252,6 @@ class MPowerSeries(PowerSeries):
252
252
sage: g = 1 + s + t - s*t + S.O(5); g
253
253
1 + s + t - s*t + O(s, t)^5
254
254
255
-
256
- sage: # needs sage.rings.finite_rings
257
255
sage: T = PowerSeriesRing(GF(3),5,'t'); T
258
256
Multivariate Power Series Ring in t0, t1, t2, t3, t4
259
257
over Finite Field of size 3
@@ -265,17 +263,17 @@ class MPowerSeries(PowerSeries):
265
263
sage: w in T
266
264
True
267
265
268
- sage: w = t[0] - 2*t[0]*t[2] + 5*t[4]^3 - t[0]^3*t[2]^2 + T.O(6) # needs sage.rings.finite_rings
269
- sage: w # needs sage.rings.finite_rings
266
+ sage: w = t[0] - 2*t[0]*t[2] + 5*t[4]^3 - t[0]^3*t[2]^2 + T.O(6)
267
+ sage: w
270
268
t0 + t0*t2 - t4^3 - t0^3*t2^2 + O(t0, t1, t2, t3, t4)^6
271
269
272
270
273
271
Get random elements::
274
272
275
- sage: S.random_element(4) # random
273
+ sage: S.random_element(4) # random
276
274
-2*t + t^2 - 12*s^3 + O(s, t)^4
277
275
278
- sage: T.random_element(10) # random # needs sage.rings.finite_rings
276
+ sage: T.random_element(10) # random
279
277
-t1^2*t3^2*t4^2 + t1^5*t3^3*t4 + O(t0, t1, t2, t3, t4)^10
280
278
281
279
@@ -515,9 +513,9 @@ def _subs_formal(self, *x, **kwds):
515
513
z
516
514
517
515
sage: f = -2/33*s*t^2 - 1/5*t^5 - s^5*t + s^2*t^4
518
- sage: f(z,z) # indirect doctest
516
+ sage: f(z,z) # indirect doctest
519
517
-2/33*z^3 - 1/5*z^5
520
- sage: f(z,1) # indirect doctest
518
+ sage: f(z,1) # indirect doctest
521
519
-1/5 - 2/33*z + z^2 - z^5
522
520
sage: RF = RealField(10) # needs sage.rings.real_mpfr
523
521
sage: f(z, RF(1)) # indirect doctest # needs sage.rings.real_mpfr
@@ -540,7 +538,8 @@ def _subs_formal(self, *x, **kwds):
540
538
sage: f(m,m) # needs sage.modules
541
539
Traceback (most recent call last):
542
540
...
543
- AttributeError: 'sage.matrix.matrix_rational_dense.Matrix_rational_dense' object has no attribute 'add_bigoh'
541
+ AttributeError: 'sage.matrix.matrix_rational_dense.Matrix_rational_dense'
542
+ object has no attribute 'add_bigoh'
544
543
"""
545
544
from sage .misc .misc_c import prod
546
545
0 commit comments