Skip to content

Commit

Permalink
Fix documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
verreld7 committed Nov 11, 2024
1 parent 220a0b9 commit 99e8af5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/sage/rings/semirings/tropical_polynomial.py
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ def plot(self, xmin=None, xmax=None):
T = TropicalSemiring(QQ, use_min=False)
R = PolynomialRing(T, 'x')
p1 = p1 = R([4,2,1,3])
p1 = R([4,2,1,3])
sphinx_plot(p1.plot())
A different result will be obtained if the tropical semiring employs
Expand All @@ -494,7 +494,7 @@ def plot(self, xmin=None, xmax=None):
T = TropicalSemiring(QQ, use_min=True)
R = PolynomialRing(T, 'x')
p1 = R([4,2,1,3])
sphinx_plot(plot(p1, xmin=-4, xmax=4))
sphinx_plot(p1.plot())
TESTS:
Expand Down
2 changes: 1 addition & 1 deletion src/sage/rings/semirings/tropical_variety.py
Original file line number Diff line number Diff line change
Expand Up @@ -1611,7 +1611,7 @@ def plot(self):
T = TropicalSemiring(QQ)
R = PolynomialRing(T, ('x,y'))
x, y = R.gen(), R.gen(1)
p2 = (x**6 + R(4)*x**4*y^2 + R(2)*x**3*y**3 + R(3)*x**2*y**4
p2 = (x**6 + R(4)*x**4*y**2 + R(2)*x**3*y**3 + R(3)*x**2*y**4
+ x*y**5 + R(7)*x**2 + R(5)*x*y + R(3)*y**2 + R(2)*x
+ y + R(10))
sphinx_plot(p2.tropical_variety().plot())
Expand Down

0 comments on commit 99e8af5

Please sign in to comment.