We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab1b39d commit 03ab6c6Copy full SHA for 03ab6c6
src/sage/modular/quasimodform/element.py
@@ -135,6 +135,18 @@ def _repr_(self):
135
"""
136
return str(self.q_expansion())
137
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
150
def _richcmp_(self, other, op):
151
r"""
152
Compare self with other.
0 commit comments