Objets/Documentation
seuils20.py
Je fournis le code pour reproduire ce calcul. seuils20.py
Télécharger ↓"""Classify every integer N>=8 for the reserved three hazards. SymPy for the tail proof."""
from itertools import groupby
import json
import sympy as S
from ordre20 import F, MAIN, SIGNS, laws, extremes
def tail_certificate():
n,z=S.symbols('n z',positive=True)
alpha=list(map(S.Rational,MAIN))
f=S.prod(1-a*z for a in alpha)
g=z*(z-1/n)*(z-2/n)
u=f.subs(z,1/n)
weights=[S.prod(n-j for j in range(i))/S.factorial(i)*((1-u)/u)**i for i in range(4)]
p=[S.Integer(1)]
for a in alpha: