"""Original Gaussian energy-bound sketch. Python 3.14, NumPy 2.3.5, Matplotlib 3.10.7. Writes basename PNG to CWD; inherits MPLCONFIGDIR. """ import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt import numpy as np def energy(a,V): return a/2-V*np.sqrt(a/(1+a)) def main(): V=1.0;lo,hi=0.0,2.0 for _ in range(70): mid=(lo+hi)/2 if mid*(1+mid)**3