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

Commit f9222ae

Browse files
author
Matthias Koeppe
committed
sage.geometry: More # optional - sage.rings.number_field
1 parent dcbb3b6 commit f9222ae

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/sage/geometry/polyhedron/base3.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ def slack_matrix(self):
136136
[1 0 1 0 0 1]
137137
[1 0 0 0 1 1]
138138
139-
sage: P = polytopes.dodecahedron().faces(2)[0].as_polyhedron()
140-
sage: P.slack_matrix()
139+
sage: P = polytopes.dodecahedron().faces(2)[0].as_polyhedron() # optional - sage.rings.number_field
140+
sage: P.slack_matrix() # optional - sage.rings.number_field
141141
[1/2*sqrt5 - 1/2 0 0 1 1/2*sqrt5 - 1/2 0]
142142
[ 0 0 1/2*sqrt5 - 1/2 1/2*sqrt5 - 1/2 1 0]
143143
[ 0 1/2*sqrt5 - 1/2 1 0 1/2*sqrt5 - 1/2 0]

src/sage/geometry/polyhedron/base6.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -1176,9 +1176,9 @@ def affine_hull_projection(self,
11761176
A vertex at (2, 0, 0),
11771177
A vertex at (1, 3/2, 0),
11781178
A vertex at (1, 1/2, 4/3))
1179-
sage: A = S.affine_hull_projection(orthonormal=True, extend=True); A
1179+
sage: A = S.affine_hull_projection(orthonormal=True, extend=True); A # optional - sage.rings.number_field
11801180
A 3-dimensional polyhedron in AA^3 defined as the convex hull of 4 vertices
1181-
sage: A.vertices()
1181+
sage: A.vertices() # optional - sage.rings.number_field
11821182
(A vertex at (0.7071067811865475?, 0.4082482904638630?, 1.154700538379252?),
11831183
A vertex at (0.7071067811865475?, 1.224744871391589?, 0.?e-18),
11841184
A vertex at (1.414213562373095?, 0.?e-18, 0.?e-18),
@@ -1187,11 +1187,11 @@ def affine_hull_projection(self,
11871187
With the parameter ``minimal`` one can get a minimal base ring::
11881188
11891189
sage: s = polytopes.simplex(3)
1190-
sage: s_AA = s.affine_hull_projection(orthonormal=True, extend=True)
1191-
sage: s_AA.base_ring()
1190+
sage: s_AA = s.affine_hull_projection(orthonormal=True, extend=True) # optional - sage.rings.number_field
1191+
sage: s_AA.base_ring() # optional - sage.rings.number_field
11921192
Algebraic Real Field
1193-
sage: s_full = s.affine_hull_projection(orthonormal=True, extend=True, minimal=True)
1194-
sage: s_full.base_ring()
1193+
sage: s_full = s.affine_hull_projection(orthonormal=True, extend=True, minimal=True) # optional - sage.rings.number_field
1194+
sage: s_full.base_ring() # optional - sage.rings.number_field
11951195
Number Field in a with defining polynomial y^4 - 4*y^2 + 1 with a = 0.5176380902050415?
11961196
11971197
More examples with the ``orthonormal`` parameter::

0 commit comments

Comments
 (0)