Beispiel #1
0
 def modsym(self, N, k, i, j=None):
     """
     Return the corresponding simple modular symbols factor.
     """
     if j is None:
         return compute.load_ambient_space(N, k, i)
     else:
         return compute.load_factor(N, k, i, j)
Beispiel #2
0
def newform():
    N = int(request.args.get('N', 37))
    k = int(request.args.get('k', 2))
    i = int(request.args.get('i', 0))
    j = int(request.args.get('j', 0))
    s = query_html('N=%s and k=%s and i=%s'%(N,k,i))
    s += '<h1>%s</h1>'%newform_html(N,k,i,j, in_space=True)

    # this could take significant time
    A = compute.load_factor(N,k,i,j)
    s += 'Newform of degree %s<br>'%A.dimension()

    s += '<a href="/aplist_powerbasis?N=%s&k=%s&i=%s&j=%s">power basis</a>'%(
        N,k,i,j)
    
    return s