|
7 | 7 | ``manifolds.<tab>``, where ``<tab>`` indicates pressing the tab key. |
8 | 8 | They are: |
9 | 9 |
|
| 10 | +- :class:`~sage.manifolds.differentiable.examples.euclidean.EuclideanSpace`: Euclidean space |
| 11 | +- :class:`~sage.manifolds.differentiable.examples.real_line.RealLine`: real line |
| 12 | +- :class:`~sage.manifolds.differentiable.examples.real_line.OpenInterval`: open interval on the real line |
10 | 13 | - :func:`Sphere`: sphere embedded in Euclidean space |
11 | 14 | - :func:`Torus`: torus embedded in Euclidean space |
12 | 15 | - :func:`Minkowski`: 4-dimensional Minkowski space |
|
27 | 30 | # http://www.gnu.org/licenses/ |
28 | 31 | # ***************************************************************************** |
29 | 32 |
|
| 33 | +# Lazy import from examples folders: |
| 34 | +from sage.misc.lazy_import import lazy_import as _lazy_import |
| 35 | +_lazy_import('sage.manifolds.differentiable.examples.real_line', 'OpenInterval') |
| 36 | +_lazy_import('sage.manifolds.differentiable.examples.real_line', 'RealLine') |
| 37 | +_lazy_import('sage.manifolds.differentiable.examples.euclidean', 'EuclideanSpace') |
| 38 | + |
30 | 39 | def Minkowski(positive_spacelike=True, names=None): |
31 | 40 | """ |
32 | 41 | Generate a Minkowski space of dimension 4. |
@@ -124,7 +133,7 @@ def Sphere(dim=None, radius=1, names=None, stereo2d=False, stereo_lim=None): |
124 | 133 | from sage.symbolic.constants import pi |
125 | 134 | from sage.misc.misc_c import prod |
126 | 135 | from sage.manifolds.manifold import Manifold |
127 | | - from sage.manifolds.differentiable.euclidean import EuclideanSpace |
| 136 | + from sage.manifolds.differentiable.examples.euclidean import EuclideanSpace |
128 | 137 |
|
129 | 138 | if dim is None: |
130 | 139 | if names is None: |
@@ -365,7 +374,7 @@ def Torus(R=2, r=1, names=None): |
365 | 374 | """ |
366 | 375 | from sage.functions.trig import cos, sin |
367 | 376 | from sage.manifolds.manifold import Manifold |
368 | | - from sage.manifolds.differentiable.euclidean import EuclideanSpace |
| 377 | + from sage.manifolds.differentiable.examples.euclidean import EuclideanSpace |
369 | 378 | E = EuclideanSpace(3, symbols='X Y Z') |
370 | 379 | M = Manifold(2, 'T', ambient=E, structure="Riemannian") |
371 | 380 | if names is None: |
|
0 commit comments