def processMaassNavigation(numrecs=35): """ Produces a table of numrecs Maassforms with Fourier coefficients in the database """ DB = LfunctionDatabase.getMaassDb() s = '<h5>The L-functions attached to the first 4 weight 0 Maass newforms with trivial character on Hecke congruence groups $\Gamma_0(N)$</h5>' s += '<table>\n' i = 0 maxinlevel = 4 for level in [1, 2, 3, 4, 5, 6, 7, 9]: j = 0 s += '<tr>\n' s += '<td><bold>N={0}:</bold></td>\n'.format(level) finds = DB.get_Maass_forms({ 'Level': int(level), 'char': 1, 'Newform': None }) for f in finds: nc = f.get('Numc', 0) if nc <= 0: continue R = f.get('Eigenvalue', 0) if R == 0: continue if f.get('Symmetry', 0) == 1: T = 'o' else: T = 'e' _until = min(12, len(str(R))) Rst = str(R)[:_until] idd = f.get('_id', None) if idd is None: continue idd = str(idd) url = url_for('.l_function_maass_page', dbid=idd) s += '<td><a href="{0}">{1}</a>{2}'.format(url, Rst, T) i += 1 j += 1 if i >= numrecs or j >= maxinlevel: break s += '</tr>\n' if i > numrecs: break s += '</table>\n' return s
def processMaassNavigation(numrecs=35): """ Produces a table of numrecs Maassforms with Fourier coefficients in the database """ DB = LfunctionDatabase.getMaassDb() s = '<h5>The L-functions attached to the first 4 weight 0 Maass newforms with trivial character on Hecke congruence groups $\Gamma_0(N)$</h5>' s += '<table>\n' i = 0 maxinlevel = 4 for level in [1, 2, 3, 4, 5, 6, 7, 9]: j = 0 s += '<tr>\n' s += '<td><bold>N={0}:</bold></td>\n'.format(level) finds = DB.get_Maass_forms({'Level': int(level), 'char': 1, 'Newform' : None}) for f in finds: nc = f.get('Numc', 0) if nc <= 0: continue R = f.get('Eigenvalue', 0) if R == 0: continue if f.get('Symmetry',0) == 1: T = 'o' else: T = 'e' _until = min(12, len(str(R))) Rst = str(R)[:_until] idd = f.get('_id', None) if idd is None: continue idd = str(idd) url = url_for('.l_function_maass_page', dbid=idd) s += '<td><a href="{0}">{1}</a>{2}'.format(url, Rst, T) i += 1 j += 1 if i >= numrecs or j >= maxinlevel: break s += '</tr>\n' if i > numrecs: break s += '</table>\n' return s