Skip to content

Commit

Permalink
fixing doctests
Browse files Browse the repository at this point in the history
  • Loading branch information
fchapoton committed Feb 7, 2025
1 parent 77e830f commit f910c56
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/sage/modular/drinfeld_modform/tutorial.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@
sage: M = DrinfeldModularForms(K, 4, has_type=True)
sage: M.gens()
[g1, g2, g3, h4]
(g1, g2, g3, h4)
sage: h4 = M.3
sage: h4.weight()
40
Expand Down
14 changes: 7 additions & 7 deletions src/sage/modular/modform_hecketriangle/readme.py
Original file line number Diff line number Diff line change
Expand Up @@ -1015,12 +1015,12 @@
sage: QF = QuasiWeakModularForms(n=8, k=10/3, ep=-1)
sage: QF.default_prec(1)
sage: QF.quasi_part_gens(min_exp=-1)
[q^-1 + O(q),
(q^-1 + O(q),
1 + O(q),
q^-1 - 9/(128*d) + O(q),
1 + O(q),
q^-1 - 19/(64*d) + O(q),
q^-1 + 1/(64*d) + O(q)]
q^-1 + 1/(64*d) + O(q))
sage: QF.default_prec(QF.required_laurent_prec(min_exp=-1))
sage: QF.q_basis(min_exp=-1) # long time
[q^-1 + O(q^5),
Expand All @@ -1042,9 +1042,9 @@
3
sage: MF.default_prec(2)
sage: MF.gens()
[1 - 37/(200*d)*q + O(q^2),
(1 - 37/(200*d)*q + O(q^2),
1 + 33/(200*d)*q + O(q^2),
1 - 27/(200*d)*q + O(q^2)]
1 - 27/(200*d)*q + O(q^2))
- **Coordinate vectors for (quasi) holomorphic modular forms and (quasi) cusp forms:**
Expand Down Expand Up @@ -1135,16 +1135,16 @@
sage: MF.dimension()
2
sage: MF.gens()
[1 + 240*q^2 + 2160*q^4 + O(q^5), q - 8*q^2 + 28*q^3 - 64*q^4 + O(q^5)]
(1 + 240*q^2 + 2160*q^4 + O(q^5), q - 8*q^2 + 28*q^3 - 64*q^4 + O(q^5))
sage: E4(i)
1.941017189...
sage: E4.order_at(-1)
1
sage: MF = (E2/E4).reduced_parent()
sage: MF.quasi_part_gens(order_1=-1)
[1 - 40*q + 552*q^2 - 4896*q^3 + 33320*q^4 + O(q^5),
1 - 24*q + 264*q^2 - 2016*q^3 + 12264*q^4 + O(q^5)]
(1 - 40*q + 552*q^2 - 4896*q^3 + 33320*q^4 + O(q^5),
1 - 24*q + 264*q^2 - 2016*q^3 + 12264*q^4 + O(q^5))
sage: prec = MF.required_laurent_prec(order_1=-1)
sage: qexp = (E2/E4).q_expansion(prec=prec)
sage: qexp
Expand Down
8 changes: 4 additions & 4 deletions src/sage/modular/pollack_stevens/manin_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,13 +315,13 @@ def __getitem__(self, B):
sage: from sage.modular.pollack_stevens.fund_domain import ManinRelations
sage: S = Symk(0,QQ)
sage: MR = ManinRelations(37); MR.gens()
[
(
[1 0] [ 0 -1] [-1 -1] [-1 -2] [-2 -3] [-3 -1] [-1 -4] [-4 -3]
[0 1], [ 1 4], [ 4 3], [ 3 5], [ 5 7], [ 7 2], [ 2 7], [ 7 5],
<BLANKLINE>
[-2 -3]
[ 3 4]
]
)
sage: data = {M2Z([-2,-3,5,7]): S(0), M2Z([1,0,0,1]): S(0), M2Z([-1,-2,3,5]): S(0), M2Z([-1,-4,2,7]): S(1), M2Z([0,-1,1,4]): S(1), M2Z([-3,-1,7,2]): S(-1), M2Z([-2,-3,3,4]): S(0), M2Z([-4,-3,7,5]): S(0), M2Z([-1,-1,4,3]): S(0)}
sage: D = OverconvergentDistributions(2, 37, 40)
Expand Down Expand Up @@ -354,13 +354,13 @@ def compute_full_data(self):
sage: from sage.modular.pollack_stevens.fund_domain import ManinRelations
sage: S = Symk(0,QQ)
sage: MR = ManinRelations(37); MR.gens()
[
(
[1 0] [ 0 -1] [-1 -1] [-1 -2] [-2 -3] [-3 -1] [-1 -4] [-4 -3]
[0 1], [ 1 4], [ 4 3], [ 3 5], [ 5 7], [ 7 2], [ 2 7], [ 7 5],
<BLANKLINE>
[-2 -3]
[ 3 4]
]
)
sage: data = {M2Z([-2,-3,5,7]): S(0), M2Z([1,0,0,1]): S(0), M2Z([-1,-2,3,5]): S(0), M2Z([-1,-4,2,7]): S(1), M2Z([0,-1,1,4]): S(1), M2Z([-3,-1,7,2]): S(-1), M2Z([-2,-3,3,4]): S(0), M2Z([-4,-3,7,5]): S(0), M2Z([-1,-1,4,3]): S(0)}
sage: f = ManinMap(S,MR,data)
Expand Down
4 changes: 2 additions & 2 deletions src/sage/modular/quasimodform/element.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ class QuasiModularFormsElement(ModuleElement):
sage: QM = QuasiModularForms(1)
sage: QM.gens()
[1 - 24*q - 72*q^2 - 96*q^3 - 168*q^4 - 144*q^5 + O(q^6),
(1 - 24*q - 72*q^2 - 96*q^3 - 168*q^4 - 144*q^5 + O(q^6),
1 + 240*q + 2160*q^2 + 6720*q^3 + 17520*q^4 + 30240*q^5 + O(q^6),
1 - 504*q - 16632*q^2 - 122976*q^3 - 532728*q^4 - 1575504*q^5 + O(q^6)]
1 - 504*q - 16632*q^2 - 122976*q^3 - 532728*q^4 - 1575504*q^5 + O(q^6))
sage: QM.0 + QM.1
2 + 216*q + 2088*q^2 + 6624*q^3 + 17352*q^4 + 30096*q^5 + O(q^6)
sage: QM.0 * QM.1
Expand Down

0 comments on commit f910c56

Please sign in to comment.