File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed
src/sage/modular/quasimodform Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -781,7 +781,16 @@ def from_polynomial(self, polynomial):
781
781
782
782
def basis_of_weight (self , weight ):
783
783
r"""
784
- Return a basis of elements generating the subspace of the given weight.
784
+ Return a basis of elements generating the subspace of the given
785
+ weight.
786
+
787
+ INPUT:
788
+
789
+ - ``weight`` (integer) -- the weight of the subspace
790
+
791
+ OUTPUT:
792
+
793
+ A list of quasimodular forms of the given weight.
785
794
786
795
EXAMPLES::
787
796
@@ -806,8 +815,10 @@ def basis_of_weight(self, weight):
806
815
"""
807
816
basis = []
808
817
E2 = self .weight_2_eisenstein_series ()
818
+ M = self .__modular_forms_subring
809
819
for j in range (weight // 2 ):
810
- basis += [f * E2 ** j for f in self .__modular_forms_subring .modular_forms_of_weight (weight - 2 * j ).basis ()]
820
+ basis += [f * E2 ** j for f
821
+ in M .modular_forms_of_weight (weight - 2 * j ).basis ()]
811
822
if not weight % 2 :
812
823
basis .append (E2 ** (Integer (weight / 2 )))
813
824
return basis
You can’t perform that action at this time.
0 commit comments