Objects/Documentation
depletion18.py
Compare schedules after depletion · Reproducible Python implementation.
Download ↓"""Finite Hellinger affinity after a common depletion prefix. Python 3.10+, stdlib."""
import json
from math import exp, isqrt, log, log1p, sqrt
U = 1 << 128
def ceildiv(a, b):
return -(-a // b)
def times(x, y):
return x[0]*y[0]//U, ceildiv(x[1]*y[1], U)
def power(x, n):