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

Commit eb31b22

Browse files
author
Matthias Koeppe
committed
src/sage/geometry/voronoi_diagram.py: Add # optional - sage.rings.number_field
1 parent c1b1d93 commit eb31b22

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/sage/geometry/voronoi_diagram.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -52,18 +52,18 @@ class VoronoiDiagram(SageObject):
5252
Get the Voronoi diagram of a regular pentagon in ``AA^2``.
5353
All cells meet at the origin::
5454
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
5656
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
5858
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
6060
False
6161
6262
If the vertices are not converted to ``AA`` before, the method throws an error::
6363
64-
sage: polytopes.dodecahedron().vertices_list()[0][0].parent()
64+
sage: polytopes.dodecahedron().vertices_list()[0][0].parent() # optional - sage.rings.number_field
6565
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
6767
Traceback (most recent call last):
6868
...
6969
NotImplementedError: Base ring of the Voronoi diagram must be
@@ -232,9 +232,9 @@ def _repr_(self):
232232
233233
EXAMPLES::
234234
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
236236
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
238238
The empty Voronoi diagram.
239239
"""
240240
if self._n:

0 commit comments

Comments
 (0)