import sys sys.argv = ['x'] from table20_hypo2 import * words = [(float(d['kap']), float(d['lam'])) for d in V.A_WORDS] triv = [(0.0, 1.0), (0.5, 0.5)] rs = (1/13, 10/13) c, t = constant([rs]); print('Robert-Sargos pair alone (one line, no transforms): %.6f' % c) for dep in (1, 2, 4, 8, 12): cl = closure(triv + [rs], depth=dep); c, t = constant(cl); print(' closure depth %2d (%4d pairs): %.6f' % (dep, len(cl), c)) hb = [(2/((k-1)**2*(k+2)), 1 - (3*k-2)/(k*(k-1)*(k+2))) for k in range(3, 12)] cl = closure(triv + hb, depth=12); c, t = constant(cl); c2, t2 = constant(cl, line_pairs=BASE + cl) print('Heath-Brown pairs (p_k, q_k), k = 3..11, as seeds: %.6f; also along the line: %.6f' % (c, c2)) # which U-range does the Robert-Sargos closure improve? compare profiles at a few U import numpy as np cl = closure(triv + [rs], depth=12) def prof(U, pairs): return max(1 - l - k*(U - 1) for k, l in pairs) base = closure(triv, depth=14) for U in (1.5, 2.0, 2.25, 2.5, 2.7, 2.78, 2.9, 3.0): print(' U = %.2f: words %.5f, with the pair (1/13,10/13) and its transforms %.5f, (6-U)/36 = %.5f' % (U, prof(U, base), prof(U, cl), (6-U)/36))