"""TikZ coordinates for fig:cL, the graph of c_L(beta) on (-1,3]. c_L is the closed form eq:intro_c_closed of thm:layered (c_L in main_results.py); for beta <= 1 it is compared with the supremum eq:intro_c_sup computed directly (hbar_sup). The points beta = -1 + 2 t^2 cluster near beta = -1, where c_L has a vertical tangent. """ from math import log from main_results import LOG2, c_L, hbar_sup def coords(points): return " ".join(f"({b:.4f},{c:.4f})" for b, c in points) if __name__ == "__main__": left = [] for i in range(1, 61): b = -1 + 2 * (i / 60) ** 2 v = c_L(b) assert abs(v - hbar_sup(1 + b)[0]) < 1e-6, b left.append((b, v)) right = [(1 + i / 10, log(2 + i / 10) / (2 * LOG2)) for i in range(1, 21)] print("c_L on (-1,1]:") print(f"(-1,0) {coords(left)}") print("c_L on [1,3]:") print(coords(right))