Atelier des rouesLab FR
Objects/Documentation

clauses32.py

Shared conditionals and checks · clauses32.py

Download ↓
"""Search for smaller rational point cores using a fresh grid and deterministic deletions."""
from fractions import Fraction as F
from itertools import product
from pathlib import Path
from random import Random
from verifier26 import permitted
from contacts27 import TRIPLE
from union30 import transversal
import json
def family():
    old=json.loads(Path(__file__).with_name('noyau31.json').read_bytes());e=F(3,16)
    groups=[{h for h in permitted(TRIPLE,e,j) if any(h[:3]) or h[3]<0} for j in range(4)]
    catalogue=sorted(set.union(*groups));entries=[[(i,p) for i,p in enumerate(catalogue) if p in g] for g in groups]
    pool={}
    def add(j,u,v):
        x,y=u.numerator,v.numerator;d,f=u.denominator,v.denominator

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.