Skip to content

Commit 44c203b

Browse files
committed
fix another doctest
1 parent 7795d55 commit 44c203b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/doc/en/prep/Quickstarts/Linear-Algebra.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -324,16 +324,16 @@ We can easily solve linear equations using the backslash, like in Matlab.
324324
::
325325

326326
sage: A = random_matrix(QQ, 3, algorithm='unimodular')
327-
sage: v = vector([2,3,1])
328-
sage: A,v # random
327+
sage: v = vector([2, 3, 1])
328+
sage: A, v # random
329329
(
330330
[ 0 -1 1]
331331
[-1 -1 -1]
332332
[ 0 2 2], (2, 3, 1)
333333
)
334-
sage: x=A\v; x # random
334+
sage: x = A.solve_right(v); x # random
335335
(-7/2, -3/4, 5/4)
336-
sage: A*x # random
336+
sage: A * x # random
337337
(2, 3, 1)
338338

339339
For *lots* more (concise) information, see the Sage `Linear Algebra

0 commit comments

Comments
 (0)