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

Commit

Permalink
Replace '# optional - polymake' with '# optional - jupymake'
Browse files Browse the repository at this point in the history
  • Loading branch information
mkoeppe committed Aug 9, 2022
1 parent c5bd052 commit 1927882
Show file tree
Hide file tree
Showing 15 changed files with 335 additions and 335 deletions.
4 changes: 2 additions & 2 deletions src/doc/en/thematic_tutorials/geometry/polyhedra_tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ for sage is installed.

::

sage: p = Polyhedron(vertices=[(0,0),(1,0),(0,1)], # optional - polymake
sage: p = Polyhedron(vertices=[(0,0),(1,0),(0,1)], # optional - jupymake
....: rays=[(1,1)], lines=[],
....: backend='polymake', base_ring=QQ)

Expand All @@ -657,7 +657,7 @@ An example with quadratic field:
::

sage: V = polytopes.dodecahedron().vertices_list() # optional - sage.rings.number_field
sage: Polyhedron(vertices=V, backend='polymake') # optional - polymake # optional - sage.rings.number_field
sage: Polyhedron(vertices=V, backend='polymake') # optional - jupymake # optional - sage.rings.number_field
A 3-dimensional polyhedron
in (Number Field in sqrt5 with defining polynomial x^2 - 5
with sqrt5 = 2.236067977499790?)^3
Expand Down
2 changes: 1 addition & 1 deletion src/sage/combinat/root_system/associahedron.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ def Associahedra(base_ring, ambient_dim, backend='ppl'):
<class 'sage.combinat.root_system.associahedron.Associahedra_ppl_with_category'>
sage: Associahedra(QQ, 4, 'normaliz').parent() # optional - pynormaliz
<class 'sage.combinat.root_system.associahedron.Associahedra_normaliz_with_category'>
sage: Associahedra(QQ, 4, 'polymake').parent() # optional - polymake
sage: Associahedra(QQ, 4, 'polymake').parent() # optional - jupymake
<class 'sage.combinat.root_system.associahedron.Associahedra_polymake_with_category'>
sage: Associahedra(QQ, 4, 'field').parent()
<class 'sage.combinat.root_system.associahedron.Associahedra_field_with_category'>
Expand Down
194 changes: 97 additions & 97 deletions src/sage/geometry/polyhedron/backend_polymake.py

Large diffs are not rendered by default.

36 changes: 18 additions & 18 deletions src/sage/geometry/polyhedron/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1116,50 +1116,50 @@ def _polymake_init_(self):
EXAMPLES::
sage: P = polytopes.cube()
sage: PP = polymake(P) # optional - polymake
sage: PP.N_VERTICES # optional - polymake
sage: PP = polymake(P) # optional - jupymake
sage: PP.N_VERTICES # optional - jupymake
8
Lower-dimensional polyhedron::
sage: P = Polyhedron(vertices=[[1, 0], [0, 1]])
sage: PP = polymake(P) # optional - polymake
sage: PP.COMBINATORIAL_DIM # optional - polymake
sage: PP = polymake(P) # optional - jupymake
sage: PP.COMBINATORIAL_DIM # optional - jupymake
1
sage: PP.AFFINE_HULL # optional - polymake
sage: PP.AFFINE_HULL # optional - jupymake
-1 1 1
Empty polyhedron::
sage: P = Polyhedron(ambient_dim=2, vertices=[])
sage: PP = polymake(P) # optional - polymake
sage: PP.COMBINATORIAL_DIM # optional - polymake
sage: PP = polymake(P) # optional - jupymake
sage: PP.COMBINATORIAL_DIM # optional - jupymake
-1
Pointed unbounded polyhedron::
sage: P = Polyhedron(vertices=[[1, 0], [0, 1]], rays=[[1, 0]])
sage: PP = polymake(P) # optional - polymake
sage: PP.VERTICES # optional - polymake
sage: PP = polymake(P) # optional - jupymake
sage: PP.VERTICES # optional - jupymake
1 0 1
1 1 0
0 1 0
sage: PP.FACETS # optional - polymake
sage: PP.FACETS # optional - jupymake
1 0 -1
-1 1 1
0 0 1
Non-pointed polyhedron::
sage: P = Polyhedron(vertices=[[1, 0], [0, 1]], lines=[[1, 0]])
sage: PP = polymake(P) # optional - polymake
sage: PP.VERTICES # optional - polymake
sage: PP = polymake(P) # optional - jupymake
sage: PP.VERTICES # optional - jupymake
1 0 1
1 0 0
sage: PP.FACETS # optional - polymake
sage: PP.FACETS # optional - jupymake
1 0 -1
0 0 1
sage: PP.LINEALITY_SPACE # optional - polymake
sage: PP.LINEALITY_SPACE # optional - jupymake
0 1 0
Algebraic polyhedron::
Expand All @@ -1169,20 +1169,20 @@ def _polymake_init_(self):
in (Number Field in sqrt5 with defining polynomial x^2 - 5
with sqrt5 = 2.236067977499790?)^3
defined as the convex hull of 20 vertices
sage: print("There may be a recompilation warning"); PP = polymake(P); PP # optional - polymake # optional - sage.rings.number_field
sage: print("There may be a recompilation warning"); PP = polymake(P); PP # optional - jupymake # optional - sage.rings.number_field
There may be a recompilation warning...
Polytope<QuadraticExtension<Rational>>[...]
sage: sorted(PP.VERTICES[:], key=repr)[0] # optional - polymake # optional - sage.rings.number_field
sage: sorted(PP.VERTICES[:], key=repr)[0] # optional - jupymake # optional - sage.rings.number_field
1 -1+1r5 -4+2r5 0
Floating-point polyhedron::
sage: P = polytopes.dodecahedron(exact=False); P
A 3-dimensional polyhedron in RDF^3 defined as the convex hull of 20 vertices
sage: print("There may be a recompilation warning"); PP = polymake(P); PP # optional - polymake
sage: print("There may be a recompilation warning"); PP = polymake(P); PP # optional - jupymake
There may be a recompilation warning...
Polytope<Float>[...]
sage: sorted(PP.VERTICES[:], key=repr)[0] # optional - polymake
sage: sorted(PP.VERTICES[:], key=repr)[0] # optional - jupymake
1 -0.472135955 0 -1.236067978
"""
Expand Down
4 changes: 2 additions & 2 deletions src/sage/geometry/polyhedron/base0.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,8 +315,8 @@ def _sage_input_(self, sib, coerced):
sage: P = Polyhedron(vertices = [[1, 0], [0, 1]], rays = [[1, 1]], backend='normaliz') # optional - pynormaliz
sage: sage_input(P) # optional - pynormaliz
Polyhedron(backend='normaliz', base_ring=QQ, rays=[(QQ(1), QQ(1))], vertices=[(QQ(0), QQ(1)), (QQ(1), QQ(0))])
sage: P = Polyhedron(vertices = [[1, 0], [0, 1]], rays = [[1, 1]], backend='polymake') # optional - polymake
sage: sage_input(P) # optional - polymake
sage: P = Polyhedron(vertices = [[1, 0], [0, 1]], rays = [[1, 1]], backend='polymake') # optional - jupymake
sage: sage_input(P) # optional - jupymake
Polyhedron(backend='polymake', base_ring=QQ, rays=[(QQ(1), QQ(1))], vertices=[(QQ(1), QQ(0)), (QQ(0), QQ(1))])
"""
kwds = dict()
Expand Down
2 changes: 1 addition & 1 deletion src/sage/geometry/polyhedron/face.py
Original file line number Diff line number Diff line change
Expand Up @@ -1056,7 +1056,7 @@ def combinatorial_face_to_polyhedral_face(polyhedron, combinatorial_face):
4
sage: polytopes.simplex(backend='normaliz').equations()[0].index() # optional - pynormaliz
4
sage: polytopes.simplex(backend='polymake').equations()[0].index() # optional - polymake
sage: polytopes.simplex(backend='polymake').equations()[0].index() # optional - jupymake
4
"""
V_indices = combinatorial_face.ambient_V_indices()
Expand Down
2 changes: 1 addition & 1 deletion src/sage/geometry/polyhedron/parent.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def Polyhedra(ambient_space_or_base_ring=None, ambient_dim=None, backend=None, *
Traceback (most recent call last):
...
ValueError: invalid base ring: Number Field in I with defining polynomial x^2 + 1 with I = 1*I cannot be coerced to a real field
sage: Polyhedra(AA, 3, backend='polymake') # optional - polymake
sage: Polyhedra(AA, 3, backend='polymake') # optional - jupymake
Traceback (most recent call last):
...
ValueError: the 'polymake' backend for polyhedron cannot be used with Algebraic Real Field
Expand Down
Loading

0 comments on commit 1927882

Please sign in to comment.