summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Raum <martin@raum-brothers.eu>2014-07-17 18:11:55 +0200
committerMartin Raum <martin@raum-brothers.eu>2014-11-14 09:47:46 +0100
commit770d6a331cac2b9a977181fa29e4bc2da2098d12 (patch)
tree7c7e0e931993b26ea138af0ec9210a9aefab6a3f
parentRemove import of mpmath. (diff)
Add doctest to higherrank.py.
-rw-r--r--src/sage/modular/jacobi/higherrank.py15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/sage/modular/jacobi/higherrank.py b/src/sage/modular/jacobi/higherrank.py
index 399071b..7f27008 100644
--- a/src/sage/modular/jacobi/higherrank.py
+++ b/src/sage/modular/jacobi/higherrank.py
@@ -881,13 +881,20 @@ def _higherrank_jacobi_forms__restriction(
A list of dictionaries.
- EXAMPLES:
+ NOTE:
- See usage in `meth:higherrank_jacobi_forms`.
+ A minimal example of how to call this function can be found in
+ `meth:higherrank_jacobi_forms`.
- TESTS:
+ TESTS::
+
+ sage: from sage.modular.jacobi.higherrank import higherrank_jacobi_forms
+ sage: k = 8
+ sage: m = QuadraticForm(matrix(2, [2,1,1,2]))
+ sage: higherrank_jacobi_forms(k, m, 1)
+ [{(0, (0, 0)): 1}]
- Tested implicitely by `meth:higherrank_jacobi_forms`. See also ``test_higherrank.py``.
+ See also ``test_higherrank.py``.
"""
assert relation_prec <= prec