Skip to content

Commit 4df388b

Browse files
committed
src/sage/modular/quasimodform/ring.py: use incremental powers of E2
1 parent c1c9163 commit 4df388b

File tree

1 file changed

+4
-2
lines changed
  • src/sage/modular/quasimodform

1 file changed

+4
-2
lines changed

src/sage/modular/quasimodform/ring.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -817,9 +817,11 @@ def basis_of_weight(self, weight):
817817
basis = []
818818
E2 = self.weight_2_eisenstein_series()
819819
M = self.__modular_forms_subring
820+
E2_pow = self.one()
820821
for j in range(weight//2):
821-
basis += [f*E2**j for f
822+
basis += [f*E2_pow for f
822823
in M.modular_forms_of_weight(weight - 2*j).basis()]
824+
E2_pow *= E2
823825
if not weight%2:
824-
basis.append(E2**(Integer(weight/2)))
826+
basis.append(E2_pow)
825827
return basis

0 commit comments

Comments
 (0)