Skip to content

Commit 03ab6c6

Browse files
committed
src/sage/modular/quasimodform/element.py: implement _latex_ method
1 parent ab1b39d commit 03ab6c6

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/sage/modular/quasimodform/element.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,18 @@ def _repr_(self):
135135
"""
136136
return str(self.q_expansion())
137137

138+
def _latex_(self):
139+
r"""
140+
Return a latex representation of ``self``.
141+
142+
TESTS::
143+
144+
sage: QM = QuasiModularForms(1)
145+
sage: latex(QM.0)
146+
1 - 24 q - 72 q^{2} - 96 q^{3} - 168 q^{4} - 144 q^{5} + O(q^{6})
147+
"""
148+
return self.q_expansion()._latex_()
149+
138150
def _richcmp_(self, other, op):
139151
r"""
140152
Compare self with other.

0 commit comments

Comments
 (0)