def l_function_maass_browse_page(): info = {"bread": get_bread(2, [("Maass Form", url_for('.l_function_maass_browse_page'))])} info["contents"] = [processMaassNavigation()] info["gl2spectrum0"] = [paintSvgMaass(1, 10, 0, 10, L="/L")] info["colorminus1"] = rgbtohex(signtocolour(-1)) info["colorplus1"] = rgbtohex(signtocolour(1)) return render_template("MaassformGL2.html", title='L-functions of GL(2) Maass Forms of Weight 0', **info)
def browse_graph(min_level, max_level, min_R, max_R): r""" Render a page with a graph with clickable dots for all with min_R <= R <= max_R and levels in the similar range. """ info = {} info['contents'] = [paintSvgMaass(min_level, max_level, min_R, max_R)] info['min_level'] = min_level info['max_level'] = max_level info['min_R'] = min_R info['max_R'] = max_R info['coloreven'] = rgbtohex(signtocolour(1)) info['colorodd'] = rgbtohex(signtocolour(-1)) bread = bread_prefix() + [('Browse graph', '')] info['bread'] = bread info['learnmore'] = learnmore_list() return render_template("maass_browse_graph.html", title='Browsing graph of Maass forms', **info)
def render_maass_browse_graph(min_level, max_level, min_R, max_R): r""" Render a page with a graph with clickable dots for all with min_R <= R <= max_R and levels in the similar range. """ info = {} info['contents'] = [paintSvgMaass(min_level, max_level, min_R, max_R)] info['min_level'] = min_level info['max_level'] = max_level info['min_R'] = min_R info['max_R'] = max_R info['coloreven'] = rgbtohex(signtocolour(1)) info['colorodd'] = rgbtohex(signtocolour(-1)) bread = [('Modular Forms', url_for('mf.modular_form_main_page')), ('Maass Waveforms', url_for('.render_maass_waveforms'))] info['bread'] = bread return render_template("mwf_browse_graph.html", title='Browsing graph of Maass forms', **info)
def render_maass_browse_graph(min_level, max_level, min_R, max_R): r""" Render a page with a graph with clickable dots for all with min_R <= R <= max_R and levels in the similar range. """ info = {} info['contents'] = [paintSvgMaass(min_level, max_level, min_R, max_R)] info['min_level'] = min_level info['max_level'] = max_level info['min_R'] = min_R info['max_R'] = max_R info['coloreven'] = rgbtohex(signtocolour(1)) info['colorodd'] = rgbtohex(signtocolour(-1)) bread = [('Modular forms', url_for('mf.modular_form_main_page')), ('Maass waveforms', url_for('.render_maass_waveforms'))] info['bread'] = bread return render_template("mwf_browse_graph.html", title='Browsing graph of Maass forms', **info)
def test_rgbtohex(self): r""" Checking utility: rgbtohex """ self.assertEqual(rgbtohex('rgb(63,255,100)'), '#3fff64') self.assertEqual(rgbtohex('rbg(63,63,255)'), '#3f3fff')