back to table · edit · history · where entries came from · files · download
1699 bytes, as of the version from 2026-11-18 10:41 (current). Recorded here, not run.
from parameter_check import reference
import mpmath as m,json
with m.workdps(170):
known=[{'params':dict(a=1,b=1,c=1,t=0),'name':'3 L(2,chi_-3)','value':m.nstr((m.polygamma(1,m.mpf(1)/3)-m.polygamma(1,m.mpf(2)/3))/3,170)},
{'params':dict(a=1,b=1,c=1,t=1),'name':'pi^2/4','value':m.nstr(m.pi**2/4,170)},
{'params':dict(a=1,b=1,c=2,t=0),'name':'2 log 2','value':m.nstr(2*m.log(2),170)}]
for aa,bb,cc in ((1,2,3),(1,3,4),(1,4,5),(1,5,6),(2,3,5)):
aa,bb,cc=map(m.mpf,(aa,bb,cc))
val=2*(cc*m.log(cc)-aa*m.log(aa)-bb*m.log(bb))/(aa*bb*cc)
known.append({'params':dict(a=int(aa),b=int(bb),c=int(cc),t=0),'name':'derived degenerate vacuum logarithms','value':m.nstr(val,170)})
row=dict(a=1,b=2,c=4,t=9);v=reference(1,2,4,9,140)
negatives=[{'name':'missing factor four','params':known[1]['params'],'kind':'value','wrong_value':m.nstr(m.pi**2/16,160)},
{'name':'wrong momentum sign','params':row,'kind':'value','wrong_value':m.nstr(reference(1,2,4,-9,140),140)},
{'name':'masses interpreted as squared masses','params':row,'kind':'value','wrong_value':m.nstr(reference(1,4,16,9,140),140)},
{'name':'scale invariance instead of degree -2 homogeneity','params':row,'kind':'value','wrong_value':m.nstr(reference(2,4,8,36,140),140)},
{'name':'NaN enclosure','params':row,'kind':'nan'}, {'name':'vacuous wide enclosure','params':row,'kind':'wide'}]
scaled=reference(2,4,8,36,140)
scaling={'base_params':row,'scaled_params':dict(a=2,b=4,c=8,t=36),'base_value':m.nstr(v,140),'four_times_scaled':m.nstr(4*scaled,140),'relative_difference':m.nstr(abs(v-4*scaled)/v,10),'passed':bool(abs(v-4*scaled)<m.mpf('1e-125'))}
print(json.dumps({'known':known,'negative':negatives,'scaling':scaling},indent=2))