Atelier des rouesLab FR
Objects/Documentation

blocs09.py

I provide the computation for “What does a delta index cost?”.

Download ↓
"""Indexed delta blocks on a finite real CRT constellation, with exact bounds."""
from bisect import bisect_right
from math import gcd
import json


def encode(n):
    data=bytearray()
    while n>=128:
        data.append(128+(n&127));n>>=7
    data.append(n)
    return data


def experiment():
    period=2*3*5*7*11*13

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.