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
r""" Strata of quadratic differentials on Riemann surfaces
.. WARNING::
This module is deprecated. You are advised to install and use the surface_dynamics package instead available at https://pypi.python.org/pypi/surface_dynamics/ """
r""" Stratum of quadratic differentials. """ """ TESTS::
sage: a = QuadraticStratum(-1,-1,-1,-1) doctest:warning ... DeprecationWarning: QuadraticStratum is deprecated and will be removed from Sage. You are advised to install the surface_dynamics package via: sage -pip install surface_dynamics If you do not have write access to the Sage installation you can alternatively do sage -pip install surface_dynamics --user The package surface_dynamics subsumes all flat surface related computation that are currently available in Sage. See more information at http://www.labri.fr/perso/vdelecro/surface-dynamics/latest/ See http://trac.sagemath.org/20695 for details. sage: loads(dumps(a)) == a True sage: QuadraticStratum([]) Traceback (most recent call last): ... ValueError: the list must be non empty ! """
self._zeroes = [] for (i, j) in iteritems(l): i = Integer(i) j = Integer(j) self._zeroes += [i]*j else:
r""" TESTS::
sage: a = QuadraticStratum(-1,-1,-1,-1) sage: print(a) Q(-1, -1, -1, -1) """ return "Q(" + str(self._zeroes)[1:-1] + ")"
r""" TESTS::
sage: a = QuadraticStratum(-1,-1,-1,-1) sage: print(a) Q(-1, -1, -1, -1) """
r""" TESTS::
sage: QuadraticStratum(0) == QuadraticStratum(0) True sage: QuadraticStratum(4) == QuadraticStratum(0) False """
r""" TESTS::
sage: QuadraticStratum(0) != QuadraticStratum(0) False sage: QuadraticStratum(4) != QuadraticStratum(0) True """
r""" Returns the genus.
EXAMPLES:
::
sage: QuadraticStratum(-1,-1,-1,-1).genus() 0 """ |