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

Commit

Permalink
fix doctests
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Kliem committed May 12, 2020
1 parent 37f8c0d commit 29bb85b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
20 changes: 10 additions & 10 deletions src/doc/en/thematic_tutorials/geometry/tips.rst
Original file line number Diff line number Diff line change
Expand Up @@ -109,19 +109,19 @@ The `style` parameter allows to change the way to print the `H`-relations:
sage: P = polytopes.permutahedron(3)
sage: print(P.Hrepresentation_str(style='<='))
-x0 - x1 - x2 == -6
x1 + x2 <= 5
x2 <= 3
x1 <= 3
-x0 - x1 <= -3
x0 + x1 <= 5
-x1 <= -1
-x1 - x2 <= -3
-x2 <= -1
x0 <= 3
-x0 <= -1
x1 <= 3
sage: print(P.Hrepresentation_str(style='positive'))
x0 + x1 + x2 == 6
5 >= x1 + x2
3 >= x2
3 >= x1
x0 + x1 >= 3
5 >= x0 + x1
x1 >= 1
x1 + x2 >= 3
x2 >= 1
3 >= x0
x0 >= 1
3 >= x1

.. end of output
2 changes: 1 addition & 1 deletion src/sage/geometry/polyhedron/library.py
Original file line number Diff line number Diff line change
Expand Up @@ -2526,7 +2526,7 @@ def permutahedron(self, n, project=False, backend=None):
sage: polytopes.permutahedron(8, backend='field') # (~1s)
A 7-dimensional polyhedron in QQ^8 defined as the convex hull of 40320 vertices
sage: polytopes.permutahedron(9, backend='field') # long time -- (~5s)
sage: polytopes.permutahedron(9, backend='field') # not tested (memory consumption) # (~5s)
A 8-dimensional polyhedron in QQ^9 defined as the convex hull of 362880 vertices
.. SEEALSO::
Expand Down

0 comments on commit 29bb85b

Please sign in to comment.