From 29bb85b913d6583327bef43bbfb8202fa71760b4 Mon Sep 17 00:00:00 2001 From: Jonathan Kliem Date: Tue, 12 May 2020 14:33:13 +0200 Subject: [PATCH] fix doctests --- .../en/thematic_tutorials/geometry/tips.rst | 20 +++++++++---------- src/sage/geometry/polyhedron/library.py | 2 +- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/doc/en/thematic_tutorials/geometry/tips.rst b/src/doc/en/thematic_tutorials/geometry/tips.rst index 9e2de1b16b6..f1fad488ddd 100644 --- a/src/doc/en/thematic_tutorials/geometry/tips.rst +++ b/src/doc/en/thematic_tutorials/geometry/tips.rst @@ -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 diff --git a/src/sage/geometry/polyhedron/library.py b/src/sage/geometry/polyhedron/library.py index 7d77b296f1e..e42fb47bb64 100644 --- a/src/sage/geometry/polyhedron/library.py +++ b/src/sage/geometry/polyhedron/library.py @@ -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::