Skip to content

Commit eb644dd

Browse files
committed
Missing a negative sign in Ax=b example, fixes #187.
1 parent 7b4084f commit eb644dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sympy.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -941,7 +941,7 @@ especially as the dimension of :math:`\mathbf{A}` grows:
941941
unknowns = sm.Matrix([L1, L2, L3, L4, L5, L6])
942942

943943
coef_mat = exprs.jacobian(unknowns)
944-
rhs = exprs.xreplace(dict(zip(unknowns, [0]*6)))
944+
rhs = -exprs.xreplace(dict(zip(unknowns, [0]*6)))
945945

946946
sol = coef_mat.LUsolve(rhs)
947947

0 commit comments

Comments
 (0)