back to table · edit · history · where entries came from · files · download
977 bytes, as of the version from 2026-10-31 12:22 (current). Recorded here, not run.
import json,time,platform
import numberdb.sage as numberdb
import mpmath as mp
import generate
start=time.monotonic(); rows={}; worst=mp.mpf(0)
for d in range(2,11):
low,js0=generate.compute_dimension(d,working=150,refined=False)
high,js1=generate.compute_dimension(d,working=200,refined=True)
with mp.workdps(200):
discrepancies=[abs(a-b) for a,b in zip(low,high)]
worst=max(worst,max(discrepancies)); assert max(discrepancies)<mp.mpf('1e-120')
data={'moments':[mp.nstr(x,205) for x in high],
'phase_integrals':[mp.nstr(x,205) for x in js1],
'low_moments':[mp.nstr(x,155) for x in low],
'max_abs_discrepancy':mp.nstr(max(discrepancies),12)}
rows[str(d)]=data
print('DIMENSION',d,json.dumps(data),flush=True)
print('SUMMARY',json.dumps({'max_abs_discrepancy':mp.nstr(worst,12),'seconds':time.monotonic()-start,'mpmath':mp.__version__,'python':platform.python_version()}),flush=True)