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

Commit c4f9dba

Browse files
author
Jonathan Kliem
committed
give both examples: Error and Warning
1 parent 81cf70f commit c4f9dba

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/doc/en/thematic_tutorials/geometry/polyhedra_tutorial.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,13 @@ The following example demonstrates the limitations of :code:`RDF`.
165165
sage: D = polytopes.dodecahedron()
166166
sage: D
167167
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)
169+
doctest:warning
170+
...
171+
UserWarning: This polyhedron data is numerically complicated; cdd
172+
could not convert between the inexact V and H representation
173+
without loss of data. The resulting object might show
174+
inconsistencies.
168175
sage: D_RDF = Polyhedron(vertices = sorted([n(v.vector(),digits=6) for v in D.vertices()]), base_ring=RDF)
169176
Traceback (most recent call last):
170177
...

0 commit comments

Comments
 (0)