Skip to content

Commit

Permalink
src/sage/modular/quasimodform/ring.py: use incremental powers of E2
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidAyotte committed Feb 24, 2024
1 parent c1c9163 commit 4df388b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/sage/modular/quasimodform/ring.py
Original file line number Diff line number Diff line change
Expand Up @@ -817,9 +817,11 @@ def basis_of_weight(self, weight):
basis = []
E2 = self.weight_2_eisenstein_series()
M = self.__modular_forms_subring
E2_pow = self.one()
for j in range(weight//2):
basis += [f*E2**j for f
basis += [f*E2_pow for f
in M.modular_forms_of_weight(weight - 2*j).basis()]
E2_pow *= E2
if not weight%2:
basis.append(E2**(Integer(weight/2)))
basis.append(E2_pow)
return basis

0 comments on commit 4df388b

Please sign in to comment.