compute decomposition of $S_k(\Gamma_0(N))$, $N \leq 100$ and $k \leq 20$
This is in preparation for computing rings of modular forms.
This code is exactly the same as the code here:
def f(N,k):
"""
INPUT:
N -- positive integer
k -- even integer >= 2
OUTPUT:
(N,k) -- level and weight
(t0,t1,t2,t3,tall) -- timings
Modular symbols space -- with new cuspidal subspace decomposed.
"""
tall = cputime(); t = cputime()
M = ModularSymbols(N,k,sign=1)
t0 = cputime(t); t = cputime()
S = M.cuspidal_subspace()
t1 = cputime(t); t = cputime()
new = S.new_subspace()
t2 = cputime(t); t = cputime()
D = new.decomposition()
t3 = cputime(t)
return ( (N, k), (t0,t1,t2,t3,cputime(tall)), M)