Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
""" Examples of manifolds """ #***************************************************************************** # Copyright (C) 2015 Travis Scrimshaw <tscrim at ucdavis.edu> # # Distributed under the terms of the GNU General Public License (GPL) # http://www.gnu.org/licenses/ #******************************************************************************
r""" An example of a manifold: the `n`-dimensional plane.
This class illustrates a minimal implementation of a manifold.
EXAMPLES::
sage: from sage.categories.manifolds import Manifolds sage: M = Manifolds(QQ).example(); M An example of a Rational Field manifold: the 3-dimensional plane
sage: M.category() Category of manifolds over Rational Field
We conclude by running systematic tests on this manifold::
sage: TestSuite(M).run() """
r""" EXAMPLES::
sage: from sage.categories.manifolds import Manifolds sage: M = Manifolds(QQ).example(6); M An example of a Rational Field manifold: the 6-dimensional plane
TESTS::
sage: TestSuite(M).run() """
r""" TESTS::
sage: from sage.categories.manifolds import Manifolds sage: Manifolds(QQ).example() An example of a Rational Field manifold: the 3-dimensional plane """ self.base_ring(), self._n)
""" Return the dimension of ``self``.
EXAMPLES::
sage: from sage.categories.manifolds import Manifolds sage: M = Manifolds(QQ).example() sage: M.dimension() 3 """
r""" Return an element of the manifold, as per :meth:`Sets.ParentMethods.an_element`.
EXAMPLES::
sage: from sage.categories.manifolds import Manifolds sage: M = Manifolds(QQ).example() sage: M.an_element() (0, 0, 0) """
|