Skip to content

Commit 1b54228

Browse files
author
Matthias Koeppe
committed
src/sage/rings/finite_rings/conway_polynomials.py: Add # needs
1 parent 1bc26c2 commit 1b54228

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

src/sage/rings/finite_rings/conway_polynomials.py

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ def conway_polynomial(p, n):
4848
4949
EXAMPLES::
5050
51-
sage: conway_polynomial(2,5)
51+
sage: conway_polynomial(2,5) # needs conway_polynomials
5252
x^5 + x^2 + 1
53-
sage: conway_polynomial(101,5)
53+
sage: conway_polynomial(101,5) # needs conway_polynomials
5454
x^5 + 2*x + 99
55-
sage: conway_polynomial(97,101)
55+
sage: conway_polynomial(97,101) # needs conway_polynomials
5656
Traceback (most recent call last):
5757
...
5858
RuntimeError: requested Conway polynomial not in database.
@@ -85,7 +85,7 @@ def exists_conway_polynomial(p, n):
8585
8686
EXAMPLES::
8787
88-
sage: exists_conway_polynomial(2,3)
88+
sage: exists_conway_polynomial(2,3) # needs conway_polynomials
8989
True
9090
sage: exists_conway_polynomial(2,-1)
9191
False
@@ -133,6 +133,7 @@ class PseudoConwayLattice(WithEqualityById, SageObject):
133133
134134
EXAMPLES::
135135
136+
sage: # needs sage.rings.finite_rings
136137
sage: from sage.rings.finite_rings.conway_polynomials import PseudoConwayLattice
137138
sage: PCL = PseudoConwayLattice(2, use_database=False)
138139
sage: PCL.polynomial(3)
@@ -161,10 +162,13 @@ def __init__(self, p, use_database=True):
161162
TESTS::
162163
163164
sage: from sage.rings.finite_rings.conway_polynomials import PseudoConwayLattice
165+
166+
sage: # needs sage.rings.finite_rings
164167
sage: PCL = PseudoConwayLattice(3)
165168
sage: PCL.polynomial(3)
166169
x^3 + 2*x + 1
167170
171+
sage: # needs sage.rings.finite_rings
168172
sage: PCL = PseudoConwayLattice(5, use_database=False)
169173
sage: PCL.polynomial(12)
170174
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):
209213
210214
EXAMPLES::
211215
216+
sage: # needs sage.rings.finite_rings
212217
sage: from sage.rings.finite_rings.conway_polynomials import PseudoConwayLattice
213218
sage: PCL = PseudoConwayLattice(2, use_database=False)
214219
sage: PCL.polynomial(3)
@@ -277,6 +282,7 @@ def check_consistency(self, n):
277282
278283
EXAMPLES::
279284
285+
sage: # needs sage.rings.finite_rings
280286
sage: from sage.rings.finite_rings.conway_polynomials import PseudoConwayLattice
281287
sage: PCL = PseudoConwayLattice(2, use_database=False)
282288
sage: PCL.check_consistency(6)
@@ -311,6 +317,7 @@ def _find_pow_of_frobenius(p, n, x, y):
311317
312318
EXAMPLES::
313319
320+
sage: # needs sage.rings.finite_rings
314321
sage: from sage.rings.finite_rings.conway_polynomials import _find_pow_of_frobenius
315322
sage: K.<a> = GF(3^14)
316323
sage: x = K.multiplicative_generator()
@@ -390,6 +397,7 @@ def _frobenius_shift(K, generators, check_only=False):
390397
391398
EXAMPLES::
392399
400+
sage: # needs sage.rings.finite_rings
393401
sage: R.<x> = GF(2)[]
394402
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
395403
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

Comments
 (0)