You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 30, 2023. It is now read-only.
Copy file name to clipboardexpand all lines: src/doc/en/thematic_tutorials/geometry/polyhedra_tutorial.rst
+42-28
Original file line number
Diff line number
Diff line change
@@ -162,17 +162,22 @@ The following example demonstrates the limitations of :code:`RDF`.
162
162
163
163
::
164
164
165
-
sage: D = polytopes.dodecahedron()
166
-
sage: D
167
-
A 3-dimensional polyhedron in (Number Field in sqrt5 with defining polynomial x^2 - 5 with sqrt5 = 2.236067977499790?)^3 defined as the convex hull of 20 vertices
168
-
sage: D_RDF = Polyhedron(vertices = [n(v.vector(),digits=6) for v in D.vertices()], base_ring=RDF)
165
+
sage: D = polytopes.dodecahedron() # optional - sage.rings.number_field
166
+
sage: D # optional - sage.rings.number_field
167
+
A 3-dimensional polyhedron
168
+
in (Number Field in sqrt5 with defining polynomial x^2 - 5
169
+
with sqrt5 = 2.236067977499790?)^3
170
+
defined as the convex hull of 20 vertices
171
+
172
+
sage: vertices_RDF = [n(v.vector(),digits=6) for v in D.vertices()] # optional - sage.rings.number_field
A 1-dimensional polyhedron in (Number Field in ab with defining polynomial x^6 - 6*x^4 - 4*x^3 + 12*x^2 - 24*x - 4 with ab = -0.1542925124782219?)^2 defined as the convex hull of 2 vertices
in (Number Field in sqrt5 with defining polynomial x^2 - 5)^3
662
+
defined as the convex hull of 20 vertices
652
663
653
664
.. end of output
654
665
@@ -775,8 +786,11 @@ polytope is already defined!
775
786
776
787
::
777
788
778
-
sage: A = polytopes.buckyball(); A # can take long
779
-
A 3-dimensional polyhedron in (Number Field in sqrt5 with defining polynomial x^2 - 5 with sqrt5 = 2.236067977499790?)^3 defined as the convex hull of 60 vertices
789
+
sage: A = polytopes.buckyball(); A # can take long # optional - sage.rings.number_field
790
+
A 3-dimensional polyhedron
791
+
in (Number Field in sqrt5 with defining polynomial x^2 - 5
792
+
with sqrt5 = 2.236067977499790?)^3
793
+
defined as the convex hull of 60 vertices
780
794
sage: B = polytopes.cross_polytope(4); B
781
795
A 4-dimensional polyhedron in ZZ^4 defined as the convex hull of 8 vertices
0 commit comments