Skip to content

Commit

Permalink
Missing a negative sign in Ax=b example, fixes #187.
Browse files Browse the repository at this point in the history
  • Loading branch information
moorepants committed Jul 30, 2024
1 parent 7b4084f commit eb644dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sympy.rst
Original file line number Diff line number Diff line change
Expand Up @@ -941,7 +941,7 @@ especially as the dimension of :math:`\mathbf{A}` grows:
unknowns = sm.Matrix([L1, L2, L3, L4, L5, L6])

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

sol = coef_mat.LUsolve(rhs)

Expand Down

0 comments on commit eb644dd

Please sign in to comment.