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

Commit

Permalink
_latex_product: Compare latex with '1' instead of comparing coefficie…
Browse files Browse the repository at this point in the history
…nt directly
  • Loading branch information
mkoeppe committed Jan 31, 2021
1 parent 86ebce6 commit f5dd363
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sage/numerical/interactive_simplex_method.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ def _latex_product(coefficients, variables,
if t.strip().startswith("-"):
sign = "-"
c = - c
if c == 1:
if t.strip() == '1':
t = latex(v)
else:
t = latex(c)
Expand Down

0 comments on commit f5dd363

Please sign in to comment.