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 c1c9163 commit 4df388bCopy full SHA for 4df388b
src/sage/modular/quasimodform/ring.py
@@ -817,9 +817,11 @@ def basis_of_weight(self, weight):
817
basis = []
818
E2 = self.weight_2_eisenstein_series()
819
M = self.__modular_forms_subring
820
+ E2_pow = self.one()
821
for j in range(weight//2):
- basis += [f*E2**j for f
822
+ basis += [f*E2_pow for f
823
in M.modular_forms_of_weight(weight - 2*j).basis()]
824
+ E2_pow *= E2
825
if not weight%2:
- basis.append(E2**(Integer(weight/2)))
826
+ basis.append(E2_pow)
827
return basis
0 commit comments