Objects/Documentation
lecteur33.py
Shared conditionals and checks · lecteur33.py
Download ↓"""Specialise the published contact curve at any rational r in [-1/64,1/64]."""
from fractions import Fraction as F
from functools import lru_cache
from pathlib import Path
import json,sys
if __package__:
from .encadrement33 import Box
else:
from encadrement33 import Box
@lru_cache(None)
def data():return json.loads(Path(__file__).with_name('courbe33.json').read_bytes())
def polynomial(co,x):
y=0
for a in co:y=y*x+a
return y
def specialize(terms,r):