示例#1
0
def statistics_by_degree(d):
    counts = HMFstats().counts()
    info = {}
    if d not in counts['degrees']:
        if d==1:
            info['error'] = r"For modular forms over $\mathbb{Q}$ go <a href=%s>here</a>" % url_for('cmf.index')
        else:
            info['error'] = "The database does not contain any Hilbert modular forms over fields of degree %s" % d
        d = 'bad'
    else:
        info['counts'] = counts
        info['degree_stats'] = HMFstats().degree_summary(d)
        info['degree'] = d
        info['stats'] = HMFstats().statistics(d)

    if d==2:
        t = 'Hilbert modular forms over real quadratic number fields'
    elif d==3:
        t = 'Hilbert modular forms over totally real cubic number fields'
    elif d==4:
        t = 'Hilbert modular forms over totally real quartic number fields'
    elif d==5:
        t = 'Hilbert modular forms over totally real quintic number fields'
    elif d==6:
        t = 'Hilbert modular forms over totally real sextic number fields'
    else:
        t = 'Hilbert modular forms over totally real fields of degree %s' % d

    bread = get_bread("Degree %s" % d)

    if d=='bad':
        t = 'Hilbert modular forms'
        bread = bread[:-1]

    return render_template("hmf_by_degree.html", info=info, title=t, bread=bread, learnmore=learnmore_list_remove('Completeness'))
示例#2
0
def hilbert_modular_form_render_webpage():
    info = to_dict(request.args, search_array=HMFSearchArray())
    if not request.args:
        t = 'Hilbert modular forms'
        info['stats'] = HMFstats()
        info['counts'] = HMFstats().counts()
        return render_template("hilbert_modular_form_all.html", info=info, credit=hmf_credit, title=t, bread=get_bread(), learnmore=learnmore_list())
    else:
        return hilbert_modular_form_search(info)
示例#3
0
def statistics():
    title = r'Hilbert modular forms: statistics'
    bread = get_bread("Statistics")
    return render_template("display_stats.html",
                           info=HMFstats(),
                           title=title,
                           bread=bread,
                           learnmore=learnmore_list())
示例#4
0
def browse():
    t = 'Hilbert modular forms'
    bread = get_bread("Browse")
    return render_template("hmf_stats.html",
                           info=HMFstats(),
                           title=t,
                           bread=bread,
                           learnmore=learnmore_list())