|
47 | 47 | from sage.modules.free_module_element import vector
|
48 | 48 | from sage.modules.vector_space_morphism import linear_transformation
|
49 | 49 | from sage.matrix.constructor import matrix
|
| 50 | +from sage.arith.misc import integer_floor as floor |
| 51 | +from sage.arith.misc import integer_ceil as ceil |
50 | 52 | from sage.misc.lazy_import import lazy_import
|
51 |
| -lazy_import("sage.functions.other", "floor", "ceil") |
52 |
| -from sage.misc.functional import sqrt |
53 |
| -from sage.groups.matrix_gps.finitely_generated import MatrixGroup |
54 |
| -from sage.graphs.graph import Graph |
| 53 | +lazy_import('sage.groups.matrix_gps.finitely_generated', 'MatrixGroup') |
55 | 54 | from sage.geometry.convex_set import ConvexSet_closed, AffineHullProjectionData
|
56 | 55 |
|
57 | 56 | import sage.geometry.abc
|
@@ -3419,7 +3418,7 @@ def radius(self):
|
3419 | 3418 | sage: p.radius()
|
3420 | 3419 | 2
|
3421 | 3420 | """
|
3422 |
| - return sqrt(self.radius_square()) |
| 3421 | + return self.radius_square().sqrt() |
3423 | 3422 |
|
3424 | 3423 | def is_inscribed(self, certificate=False):
|
3425 | 3424 | """
|
@@ -8988,7 +8987,7 @@ def integrate(self, function, measure='ambient', **kwds):
|
8988 | 8987 | Adet = AA.coerce(Adet)
|
8989 | 8988 | except TypeError:
|
8990 | 8989 | pass
|
8991 |
| - return I / sqrt(Adet) |
| 8990 | + return I / Adet.sqrt() |
8992 | 8991 |
|
8993 | 8992 | else:
|
8994 | 8993 | raise ValueError('unknown measure "{}"'.format(measure))
|
@@ -10527,6 +10526,7 @@ def edge_label(i, j, c_ij):
|
10527 | 10526 | Qplus = sum(v.column() * v.row() for v in V).pseudoinverse()
|
10528 | 10527 |
|
10529 | 10528 | # Construct the graph.
|
| 10529 | + from sage.graphs.graph import Graph |
10530 | 10530 | G = Graph()
|
10531 | 10531 | for i in range(len(V)):
|
10532 | 10532 | for j in range(i+1, len(V)):
|
|
0 commit comments