@@ -48,11 +48,11 @@ def conway_polynomial(p, n):
48
48
49
49
EXAMPLES::
50
50
51
- sage: conway_polynomial(2,5)
51
+ sage: conway_polynomial(2,5) # needs conway_polynomials
52
52
x^5 + x^2 + 1
53
- sage: conway_polynomial(101,5)
53
+ sage: conway_polynomial(101,5) # needs conway_polynomials
54
54
x^5 + 2*x + 99
55
- sage: conway_polynomial(97,101)
55
+ sage: conway_polynomial(97,101) # needs conway_polynomials
56
56
Traceback (most recent call last):
57
57
...
58
58
RuntimeError: requested Conway polynomial not in database.
@@ -85,7 +85,7 @@ def exists_conway_polynomial(p, n):
85
85
86
86
EXAMPLES::
87
87
88
- sage: exists_conway_polynomial(2,3)
88
+ sage: exists_conway_polynomial(2,3) # needs conway_polynomials
89
89
True
90
90
sage: exists_conway_polynomial(2,-1)
91
91
False
@@ -133,6 +133,7 @@ class PseudoConwayLattice(WithEqualityById, SageObject):
133
133
134
134
EXAMPLES::
135
135
136
+ sage: # needs sage.rings.finite_rings
136
137
sage: from sage.rings.finite_rings.conway_polynomials import PseudoConwayLattice
137
138
sage: PCL = PseudoConwayLattice(2, use_database=False)
138
139
sage: PCL.polynomial(3)
@@ -161,10 +162,13 @@ def __init__(self, p, use_database=True):
161
162
TESTS::
162
163
163
164
sage: from sage.rings.finite_rings.conway_polynomials import PseudoConwayLattice
165
+
166
+ sage: # needs sage.rings.finite_rings
164
167
sage: PCL = PseudoConwayLattice(3)
165
168
sage: PCL.polynomial(3)
166
169
x^3 + 2*x + 1
167
170
171
+ sage: # needs sage.rings.finite_rings
168
172
sage: PCL = PseudoConwayLattice(5, use_database=False)
169
173
sage: PCL.polynomial(12)
170
174
x^12 + 4*x^11 + 2*x^10 + 4*x^9 + 2*x^8 + 2*x^7 + 4*x^6 + x^5 + 2*x^4 + 2*x^2 + x + 2
@@ -209,6 +213,7 @@ def polynomial(self, n):
209
213
210
214
EXAMPLES::
211
215
216
+ sage: # needs sage.rings.finite_rings
212
217
sage: from sage.rings.finite_rings.conway_polynomials import PseudoConwayLattice
213
218
sage: PCL = PseudoConwayLattice(2, use_database=False)
214
219
sage: PCL.polynomial(3)
@@ -277,6 +282,7 @@ def check_consistency(self, n):
277
282
278
283
EXAMPLES::
279
284
285
+ sage: # needs sage.rings.finite_rings
280
286
sage: from sage.rings.finite_rings.conway_polynomials import PseudoConwayLattice
281
287
sage: PCL = PseudoConwayLattice(2, use_database=False)
282
288
sage: PCL.check_consistency(6)
@@ -311,6 +317,7 @@ def _find_pow_of_frobenius(p, n, x, y):
311
317
312
318
EXAMPLES::
313
319
320
+ sage: # needs sage.rings.finite_rings
314
321
sage: from sage.rings.finite_rings.conway_polynomials import _find_pow_of_frobenius
315
322
sage: K.<a> = GF(3^14)
316
323
sage: x = K.multiplicative_generator()
@@ -390,6 +397,7 @@ def _frobenius_shift(K, generators, check_only=False):
390
397
391
398
EXAMPLES::
392
399
400
+ sage: # needs sage.rings.finite_rings
393
401
sage: R.<x> = GF(2)[]
394
402
sage: f30 = x^30 + x^28 + x^27 + x^25 + x^24 + x^20 + x^19 + x^18 + x^16 + x^15 + x^12 + x^10 + x^7 + x^2 + 1
395
403
sage: f20 = x^20 + x^19 + x^15 + x^13 + x^12 + x^11 + x^9 + x^8 + x^7 + x^4 + x^2 + x + 1
0 commit comments