Objets/Documentation
temoin18.py
Comparer deux calendriers après déplétion · Par puissance de la matrice du préfixe, j’encadre aussi directement le contraste initial, environ 0,000647299264455 à 64 sites et 0,001331867848599 à 256.
Télécharger ↓"""Independent forward check at N=64. Optional NumPy. Steps through the original prefix."""
import json
from math import comb
from pathlib import Path
import numpy as np
def forward():
n=64
numbers=np.arange(n+1,dtype=np.longdouble)
one=np.longdouble(1)
b=one/n**3
count=int(np.rint(-np.log(np.longdouble(n))/(4*np.log1p(-b))))
survival=(one-b)**count
exact=np.zeros(n+1,dtype=np.longdouble)
exact[n]=1