예제 #1
0
def statistics():
    title = 'Cupsidal Newforms: Statistics'
    return render_template("display_stats.html",
                           info=CMF_stats(),
                           credit=credit(),
                           title=title,
                           bread=get_bread(other='Statistics'),
                           learnmore=learnmore_list())
예제 #2
0
def reliability_page():
    t = 'Reliability of classical modular form data'
    return render_template("single.html",
                           kid='dq.mf.elliptic.reliability',
                           credit=credit(),
                           title=t,
                           bread=get_bread(other='Reliability'),
                           learnmore=learnmore_list_remove('Reliability'))
예제 #3
0
def labels_page():
    t = 'Labels for classical modular forms'
    return render_template("single.html",
                           kid='mf.elliptic.label',
                           credit=credit(),
                           title=t,
                           bread=get_bread(other='Labels'),
                           learnmore=learnmore_list_remove('labels'))
예제 #4
0
def how_computed_page():
    t = 'Source of classical modular form data'
    return render_template("single.html",
                           kid='dq.mf.elliptic.source',
                           credit=credit(),
                           title=t,
                           bread=get_bread(other='Source'),
                           learnmore=learnmore_list_remove('Source'))
예제 #5
0
def completeness_page():
    t = 'Completeness of classical modular form data'
    return render_template("single.html",
                           kid='dq.mf.elliptic.extent',
                           credit=credit(),
                           title=t,
                           bread=get_bread(other='Completeness'),
                           learnmore=learnmore_list_remove('Completeness'))
예제 #6
0
def index():
    if len(request.args) > 0:
        info = to_dict(request.args)
        # hidden_search_type for prev/next buttons
        info['search_type'] = search_type = info.get(
            'search_type', info.get('hidden_search_type', 'List'))

        if search_type == 'Dimensions':
            for key in newform_only_fields:
                if key in info:
                    return dimension_form_search(info)
            return dimension_space_search(info)
        elif search_type == 'Spaces':
            return space_search(info)
        elif search_type == 'Traces':
            return trace_search(info)
        elif search_type == 'Random':
            return newform_search(info, random=True)
        elif search_type == 'List':
            return newform_search(info)
        assert False
    info = {"stats": CMF_stats()}
    newform_labels = ('1.12.a.a', '11.2.a.a', '23.2.a.a', '39.1.d.a',
                      '49.2.e.b', '95.6.a.a', '124.1.i.a', '148.1.f.a',
                      '633.1.m.b', '983.2.c.a')
    info["newform_list"] = [{
        'label': label,
        'url': url_for_label(label)
    } for label in newform_labels]
    space_labels = ('20.5', '60.2', '55.3.d', '147.5.n', '148.4.q', '164.4.o',
                    '244.4.w', '292.3.u', '847.2.f', '309.3.n', '356.3.n',
                    '580.2.be')
    info["space_list"] = [{
        'label': label,
        'url': url_for_label(label)
    } for label in space_labels]
    info["weight_list"] = ('1', '2', '3', '4', '5', '6-10', '11-20', '21-40',
                           '41-%d' % weight_bound())
    info["level_list"] = ('1', '2-100', '101-500', '501-1000', '1001-2000',
                          '2001-%d' % level_bound())
    return render_template("cmf_browse.html",
                           info=info,
                           credit=credit(),
                           title="Classical Modular Forms",
                           learnmore=learnmore_list(),
                           bread=get_bread())