Atelier des rouesLaboratoire EN
Objets/Documentation

certificat17.py

Je fournis le vérificateur à bornes entières.

Télécharger ↓
"""Integer enclosures for the affinity of two fully merged schedules at the tested sizes."""
from functools import lru_cache
from math import isqrt
import json

UNIT = 1 << 96


def ceiling(n, d):
    return -(-n//d)


def enclosure(h, kind):
    m = isqrt(h)
    if h <= 4 or kind not in (0,1):
        raise ValueError("requires H>4 and a binary cell type")

Lire dans son contexte

Commentaires

Les commentaires en français et en anglais sont réunis ici.

La discussion reste consultable. J’ouvrirai les participations dès que la protection antispam sera configurée.