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

Commit 05ea99d

Browse files
committed
Fixed the failed examples in Class.
1 parent a2fa0ba commit 05ea99d

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

src/sage/geometry/fan.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,11 @@
256256
from sage.misc.all import walltime, prod
257257
from sage.modules.all import vector, span
258258
from sage.rings.all import QQ, ZZ
259+
259260
from sage.functions.other import floor, ceil
261+
from sage.numerical.mip import MixedIntegerLinearProgram
262+
from sage.rings.infinity import infinity
263+
from sage.misc.prandom import choice, randint
260264

261265

262266
def is_Fan(x):
@@ -3636,11 +3640,11 @@ def __init__(self, cones, rays, lattice,
36363640
See :class:`RationalPolyhedralFan_rtree` for documentation.
36373641
36383642
TESTS::
3639-
3643+
sage: from sage.geometry.fan import RationalPolyhedralFan_rtree
36403644
sage: v1, v2= vector([0,1]), vector([1,0])
36413645
sage: v1.set_immutable()
36423646
sage: v2.set_immutable()
3643-
sage: f = sage.geometry.fan.RationalPolyhedralFan_rtree([(0,),(1,)], [v1,v2], None)
3647+
sage: f = RationalPolyhedralFan_rtree([(0,),(1,)], [v1,v2], None)
36443648
sage: f.is_pointed()
36453649
True
36463650
"""
@@ -3806,13 +3810,10 @@ def support_contains(self, *args):
38063810
fan, ``False`` otherwise.
38073811
38083812
TESTS::
3809-
3813+
sage: from sage.geometry.fan import RationalPolyhedralFan_rtree
38103814
sage: cone1 = Cone([(0,-1), (1,0)])
38113815
sage: cone2 = Cone([(1,0), (0,1)])
3812-
sage: f = Fan([cone1, cone2], allow_rtree = True)
3813-
3814-
We check if some points are in this fan::
3815-
3816+
sage: f = Fan([cone1, cone2], allow_rtree = True) # We check if some points are in this fan
38163817
sage: f.support_contains(f.lattice()(1,0))
38173818
True
38183819
sage: f.support_contains(cone1) # a cone is not a point of the lattice

src/sage/sets/real_set.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2557,4 +2557,4 @@ def intersection(self, *other):
25572557
###
25582558
return super().intersection(self, *other)
25592559

2560-
__and__ = intersection
2560+
__and__ = intersection

0 commit comments

Comments
 (0)