Skip to content

Commit 864c245

Browse files
committed
more readable number field def
1 parent 9d816eb commit 864c245

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sage/matrix/matrix_polynomial_dense.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4392,8 +4392,8 @@ cdef class Matrix_polynomial_dense(Matrix_generic_dense):
43924392
[ 0 1 0]
43934393
[ 0 0 1/2*x]
43944394
4395-
sage: ring.<y> = NumberField(x**2 - 2, "a")[]
4396-
sage: a = ring.base_ring().gen()
4395+
sage: field.<a> = NumberField(x**2 - 2)
4396+
sage: ring.<y> = field[]
43974397
sage: mat = matrix([[3*a*y - 1, (-8*a - 1)*y - 2*a + 1]])
43984398
sage: rcomp = mat.basis_completion(algorithm="smith"); rcomp
43994399
[ 39/119*a - 30/119 -99/119*a + 67/119]

0 commit comments

Comments
 (0)