@@ -52,18 +52,18 @@ class VoronoiDiagram(SageObject):
52
52
Get the Voronoi diagram of a regular pentagon in ``AA^2``.
53
53
All cells meet at the origin::
54
54
55
- sage: DV = VoronoiDiagram([[AA(c) for c in v] for v in polytopes.regular_polygon(5).vertices_list()]); DV
55
+ sage: DV = VoronoiDiagram([[AA(c) for c in v] for v in polytopes.regular_polygon(5).vertices_list()]); DV # optional - sage.rings.number_field
56
56
The Voronoi diagram of 5 points of dimension 2 in the Algebraic Real Field
57
- sage: all(P.contains([0, 0]) for P in DV.regions().values())
57
+ sage: all(P.contains([0, 0]) for P in DV.regions().values()) # optional - sage.rings.number_field
58
58
True
59
- sage: any(P.interior_contains([0, 0]) for P in DV.regions().values())
59
+ sage: any(P.interior_contains([0, 0]) for P in DV.regions().values()) # optional - sage.rings.number_field
60
60
False
61
61
62
62
If the vertices are not converted to ``AA`` before, the method throws an error::
63
63
64
- sage: polytopes.dodecahedron().vertices_list()[0][0].parent()
64
+ sage: polytopes.dodecahedron().vertices_list()[0][0].parent() # optional - sage.rings.number_field
65
65
Number Field in sqrt5 with defining polynomial x^2 - 5 with sqrt5 = 2.236067977499790?
66
- sage: VoronoiDiagram(polytopes.dodecahedron().vertices_list())
66
+ sage: VoronoiDiagram(polytopes.dodecahedron().vertices_list()) # optional - sage.rings.number_field
67
67
Traceback (most recent call last):
68
68
...
69
69
NotImplementedError: Base ring of the Voronoi diagram must be
@@ -232,9 +232,9 @@ def _repr_(self):
232
232
233
233
EXAMPLES::
234
234
235
- sage: V = VoronoiDiagram(polytopes.regular_polygon(3).vertices()); V
235
+ sage: V = VoronoiDiagram(polytopes.regular_polygon(3).vertices()); V # optional - sage.rings.number_field
236
236
The Voronoi diagram of 3 points of dimension 2 in the Algebraic Real Field
237
- sage: VoronoiDiagram([])
237
+ sage: VoronoiDiagram([]) # optional - sage.rings.number_field
238
238
The empty Voronoi diagram.
239
239
"""
240
240
if self ._n :
0 commit comments