Atelier des rouesLab FR
Objects/Documentation

experience.py

I refine stable fibres and compare their addresses with cyclic gaps enumerated by GCD.

Download ↓
"""Recursive orbit representatives for exact gaps in a square-free wheel."""
from math import gcd, prod
from pathlib import Path
import json
import sys

sys.path.append(str(Path(__file__).resolve().parents[2]/"diffusion/IX/src"))
from motif_address import CoverFiber
from motifs import primes


def representatives(n,g,limit=10000):
    if n<2 or g<1:
        raise ValueError("n >= 2, g >= 1")
    ps = primes(n)
    period = prod(ps)

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.