File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -3395,6 +3395,18 @@ def _repr_(self):
3395
3395
"""
3396
3396
return str (self .q_expansion ())
3397
3397
3398
+ def _latex_ (self ):
3399
+ r"""
3400
+ Return a latex representation of ``self``.
3401
+
3402
+ TESTS::
3403
+
3404
+ sage: M = ModularFormsRing(1)
3405
+ sage: latex(M.0)
3406
+ 1 + 240 q + 2160 q^{2} + 6720 q^{3} + 17520 q^{4} + 30240 q^{5} + O(q^{6})
3407
+ """
3408
+ return self .q_expansion ()._latex_ ()
3409
+
3398
3410
def __getitem__ (self , weight ):
3399
3411
r"""
3400
3412
Return the homogeneous component of the given graded modular form.
Original file line number Diff line number Diff line change @@ -157,6 +157,18 @@ def _repr_(self):
157
157
"""
158
158
return str (self .q_expansion ())
159
159
160
+ def _latex_ (self ):
161
+ r"""
162
+ Return a latex representation of ``self``.
163
+
164
+ TESTS::
165
+
166
+ sage: QM = QuasiModularForms(1)
167
+ sage: latex(QM.0)
168
+ 1 - 24 q - 72 q^{2} - 96 q^{3} - 168 q^{4} - 144 q^{5} + O(q^{6})
169
+ """
170
+ return self .q_expansion ()._latex_ ()
171
+
160
172
def _richcmp_ (self , other , op ):
161
173
r"""
162
174
Compare self with other.
You can’t perform that action at this time.
0 commit comments