Objects/Documentation
lecteur32.py
Shared conditionals and checks · lecteur32.py
Download ↓"""Specialise the uniform transition certificate at a rational parameter or at its critical root."""
from fractions import Fraction as F
from pathlib import Path
from functools import lru_cache
import json
@lru_cache(None)
def proof():
return json.loads(Path(__file__).with_name('passage32.json').read_bytes())
def polynomial(coeff,x):
value=0
for c in coeff:value=value*x+F(c)
return value
def bracket(co,lo,hi,steps=64):
a=polynomial(co,lo);b=polynomial(co,hi)
if not a:return [lo,lo]
if not b:return [hi,hi]