Atelier des rouesLab FR
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):

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.