Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit 0abe6bd

Browse files
committed
Trac #33159: comment examples producing wrong output
1 parent 585dbcd commit 0abe6bd

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/sage/matrix/matrix2.pyx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,10 @@ cdef class Matrix(Matrix1):
408408
Traceback (most recent call last):
409409
...
410410
ValueError: matrix equation has no solutions
411+
412+
413+
In this case, turning off the ``check`` leads to a wrong result::
414+
411415
sage: A.solve_left(b, check=False)
412416
(2)
413417

@@ -809,8 +813,15 @@ cdef class Matrix(Matrix1):
809813
Traceback (most recent call last):
810814
...
811815
ValueError: matrix equation has no solutions
816+
817+
In this case, turning off the ``check`` leads to a wrong result::
818+
812819
sage: m.solve_right(b, check=False)
813820
(0)
821+
822+
In the following, we have an inexact entry in the matrix, so
823+
the ``check`` is still skipped leading to a wrong result::
824+
814825
sage: m = matrix(SR, [0.0])
815826
sage: m.solve_right(b, check=True)
816827
(0)

0 commit comments

Comments
 (0)