# HG changeset patch
# User Jean-Pierre Flori <jean-pierre.flori@ssi.gouv.fr>
# Date 1373577596 -7200
# Thu Jul 11 23:19:56 2013 +0200
# Node ID e1894c84a1799cb8cbea3174af2f9c5ccac6caef
# Parent a0a8aba9daf1dcdfe16d26e20e59fd909652702a
Reviewer patch.
diff --git a/sage/rings/polynomial/polynomial_gf2x.pyx b/sage/rings/polynomial/polynomial_gf2x.pyx
a
|
b
|
|
288 | 288 | Return the list of coefficients of the lexicographically smallest |
289 | 289 | irreducible polynomial of degree `n` over the field of 2 elements. |
290 | 290 | |
291 | | EXAMPLE: |
| 291 | EXAMPLE:: |
292 | 292 | |
293 | 293 | sage: from sage.rings.polynomial.polynomial_gf2x import GF2X_BuildIrred_list |
294 | 294 | sage: GF2X_BuildIrred_list(2) |
… |
… |
|
311 | 311 | Return the list of coefficients of an irreducible polynomial of |
312 | 312 | degree `n` of minimal weight over the field of 2 elements. |
313 | 313 | |
314 | | EXAMPLE: |
| 314 | EXAMPLE:: |
315 | 315 | |
316 | 316 | sage: from sage.rings.polynomial.polynomial_gf2x import GF2X_BuildIrred_list, GF2X_BuildSparseIrred_list |
317 | 317 | sage: all([GF2X_BuildSparseIrred_list(n) == GF2X_BuildIrred_list(n) |
… |
… |
|
331 | 331 | Return the list of coefficients of an irreducible polynomial of |
332 | 332 | degree `n` of minimal weight over the field of 2 elements. |
333 | 333 | |
334 | | EXAMPLE: |
| 334 | EXAMPLE:: |
335 | 335 | |
336 | 336 | sage: from sage.rings.polynomial.polynomial_gf2x import GF2X_BuildRandomIrred_list |
337 | 337 | sage: GF2X_BuildRandomIrred_list(2) |
diff --git a/sage/rings/polynomial/polynomial_ring.py b/sage/rings/polynomial/polynomial_ring.py
a
|
b
|
|
1829 | 1829 | |
1830 | 1830 | A monic irreducible polynomial of degree `n` in ``self``. |
1831 | 1831 | |
1832 | | EXAMPLES: |
| 1832 | EXAMPLE:: |
1833 | 1833 | |
1834 | 1834 | sage: GF(5^3, 'a')['x'].irreducible_element(2) |
1835 | 1835 | x^2 + (4*a^2 + a + 4)*x + 2*a^2 + 2 |
… |
… |
|
2143 | 2143 | |
2144 | 2144 | A monic irreducible polynomial of degree `n` in ``self``. |
2145 | 2145 | |
2146 | | EXAMPLES: |
| 2146 | EXAMPLES:: |
2147 | 2147 | |
2148 | 2148 | sage: GF(5)['x'].irreducible_element(2) |
2149 | 2149 | x^2 + 4*x + 2 |