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

Commit 81cf70f

Browse files
author
Jonathan Kliem
committed
fix limitations of RDF example
1 parent 630e83a commit 81cf70f

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

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

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -165,13 +165,10 @@ 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
168+
sage: D_RDF = Polyhedron(vertices = sorted([n(v.vector(),digits=6) for v in D.vertices()]), base_ring=RDF)
169+
Traceback (most recent call last):
170170
...
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.
171+
ValueError: *Error: Numerical inconsistency is found. Use the GMP exact arithmetic.
175172

176173
.. end of output
177174

0 commit comments

Comments
 (0)