def processSymPowerEllipticCurveNavigation(startCond, endCond, power): """ Produces a table of all symmetric power L-functions of elliptic curves with conductors from startCond to endCond """ try: N = startCond if N < 11: N = 11 elif N > 100: N = 100 except: N = 11 try: if endCond > 500: end = 500 else: end = endCond except: end = 100 iso_list = isogenyclasstable(N, end) if power == 2: powerName = 'square' elif power == 3: powerName = 'cube' else: powerName = str(power) + '-th power' s = '<h5>Examples of symmetric ' + powerName + \ ' L-functions attached to isogeny classes of elliptic curves</h5>' s += '<table>' logger.debug(iso_list) counter = 0 nr_of_columns = 10 for label in iso_list: if counter == 0: s += '<tr>' counter += 1 s += '<td><a href="' + url_for('.l_function_ec_sym_page', power=str(power), label=label) + '">%s</a></td>\n' % label if counter == nr_of_columns: s += '</tr>\n' counter = 0 if counter > 0: s += '</tr>\n' s += '</table>\n' return s
def processEllipticCurveNavigation(startCond, endCond): """ Produces a table of all L-functions of elliptic curves with conductors from startCond to endCond """ try: N = startCond if N < 11: N = 11 elif N > 100: N = 100 except: N = 11 try: if endCond > 500: end = 500 else: end = endCond except: end = 100 iso_list = isogenyclasstable(N, end) s = '<h5>Examples of L-functions attached to isogeny classes of elliptic curves</h5>' s += '<table>' logger.debug(iso_list) counter = 0 nr_of_columns = 10 for label in iso_list: if counter == 0: s += '<tr>' counter += 1 s += '<td><a href="' + url_for('.l_function_ec_page', label=label) + '">%s</a></td>\n' % label if counter == nr_of_columns: s += '</tr>\n' counter = 0 if counter > 0: s += '</tr>\n' s += '</table>\n' return s