Atelier des rouesLab FR
Objects/Documentation

seuils20.py

I provide the code for this calculation. seuils20.py

Download ↓
"""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:

Read in context

Comments

Comments from both language editions appear here.

The discussion is open for reading. I’ll enable submissions once spam protection is configured.