Skip to content

Commit f910c56

Browse files
committed
fixing doctests
1 parent 77e830f commit f910c56

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

src/sage/modular/drinfeld_modform/tutorial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@
213213
214214
sage: M = DrinfeldModularForms(K, 4, has_type=True)
215215
sage: M.gens()
216-
[g1, g2, g3, h4]
216+
(g1, g2, g3, h4)
217217
sage: h4 = M.3
218218
sage: h4.weight()
219219
40

src/sage/modular/modform_hecketriangle/readme.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1015,12 +1015,12 @@
10151015
sage: QF = QuasiWeakModularForms(n=8, k=10/3, ep=-1)
10161016
sage: QF.default_prec(1)
10171017
sage: QF.quasi_part_gens(min_exp=-1)
1018-
[q^-1 + O(q),
1018+
(q^-1 + O(q),
10191019
1 + O(q),
10201020
q^-1 - 9/(128*d) + O(q),
10211021
1 + O(q),
10221022
q^-1 - 19/(64*d) + O(q),
1023-
q^-1 + 1/(64*d) + O(q)]
1023+
q^-1 + 1/(64*d) + O(q))
10241024
sage: QF.default_prec(QF.required_laurent_prec(min_exp=-1))
10251025
sage: QF.q_basis(min_exp=-1) # long time
10261026
[q^-1 + O(q^5),
@@ -1042,9 +1042,9 @@
10421042
3
10431043
sage: MF.default_prec(2)
10441044
sage: MF.gens()
1045-
[1 - 37/(200*d)*q + O(q^2),
1045+
(1 - 37/(200*d)*q + O(q^2),
10461046
1 + 33/(200*d)*q + O(q^2),
1047-
1 - 27/(200*d)*q + O(q^2)]
1047+
1 - 27/(200*d)*q + O(q^2))
10481048
10491049
10501050
- **Coordinate vectors for (quasi) holomorphic modular forms and (quasi) cusp forms:**
@@ -1135,16 +1135,16 @@
11351135
sage: MF.dimension()
11361136
2
11371137
sage: MF.gens()
1138-
[1 + 240*q^2 + 2160*q^4 + O(q^5), q - 8*q^2 + 28*q^3 - 64*q^4 + O(q^5)]
1138+
(1 + 240*q^2 + 2160*q^4 + O(q^5), q - 8*q^2 + 28*q^3 - 64*q^4 + O(q^5))
11391139
sage: E4(i)
11401140
1.941017189...
11411141
sage: E4.order_at(-1)
11421142
1
11431143
11441144
sage: MF = (E2/E4).reduced_parent()
11451145
sage: MF.quasi_part_gens(order_1=-1)
1146-
[1 - 40*q + 552*q^2 - 4896*q^3 + 33320*q^4 + O(q^5),
1147-
1 - 24*q + 264*q^2 - 2016*q^3 + 12264*q^4 + O(q^5)]
1146+
(1 - 40*q + 552*q^2 - 4896*q^3 + 33320*q^4 + O(q^5),
1147+
1 - 24*q + 264*q^2 - 2016*q^3 + 12264*q^4 + O(q^5))
11481148
sage: prec = MF.required_laurent_prec(order_1=-1)
11491149
sage: qexp = (E2/E4).q_expansion(prec=prec)
11501150
sage: qexp

src/sage/modular/pollack_stevens/manin_map.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -315,13 +315,13 @@ def __getitem__(self, B):
315315
sage: from sage.modular.pollack_stevens.fund_domain import ManinRelations
316316
sage: S = Symk(0,QQ)
317317
sage: MR = ManinRelations(37); MR.gens()
318-
[
318+
(
319319
[1 0] [ 0 -1] [-1 -1] [-1 -2] [-2 -3] [-3 -1] [-1 -4] [-4 -3]
320320
[0 1], [ 1 4], [ 4 3], [ 3 5], [ 5 7], [ 7 2], [ 2 7], [ 7 5],
321321
<BLANKLINE>
322322
[-2 -3]
323323
[ 3 4]
324-
]
324+
)
325325
326326
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)}
327327
sage: D = OverconvergentDistributions(2, 37, 40)
@@ -354,13 +354,13 @@ def compute_full_data(self):
354354
sage: from sage.modular.pollack_stevens.fund_domain import ManinRelations
355355
sage: S = Symk(0,QQ)
356356
sage: MR = ManinRelations(37); MR.gens()
357-
[
357+
(
358358
[1 0] [ 0 -1] [-1 -1] [-1 -2] [-2 -3] [-3 -1] [-1 -4] [-4 -3]
359359
[0 1], [ 1 4], [ 4 3], [ 3 5], [ 5 7], [ 7 2], [ 2 7], [ 7 5],
360360
<BLANKLINE>
361361
[-2 -3]
362362
[ 3 4]
363-
]
363+
)
364364
365365
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)}
366366
sage: f = ManinMap(S,MR,data)

src/sage/modular/quasimodform/element.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ class QuasiModularFormsElement(ModuleElement):
5252
5353
sage: QM = QuasiModularForms(1)
5454
sage: QM.gens()
55-
[1 - 24*q - 72*q^2 - 96*q^3 - 168*q^4 - 144*q^5 + O(q^6),
55+
(1 - 24*q - 72*q^2 - 96*q^3 - 168*q^4 - 144*q^5 + O(q^6),
5656
1 + 240*q + 2160*q^2 + 6720*q^3 + 17520*q^4 + 30240*q^5 + O(q^6),
57-
1 - 504*q - 16632*q^2 - 122976*q^3 - 532728*q^4 - 1575504*q^5 + O(q^6)]
57+
1 - 504*q - 16632*q^2 - 122976*q^3 - 532728*q^4 - 1575504*q^5 + O(q^6))
5858
sage: QM.0 + QM.1
5959
2 + 216*q + 2088*q^2 + 6624*q^3 + 17352*q^4 + 30096*q^5 + O(q^6)
6060
sage: QM.0 * QM.1

0 commit comments

Comments
 (0)