Lightweight numerical optimisers used by the Bonsai core. These mirror the scipy primitives the reference python code relies on: a 1-D Brent root-finder (scipy.optimize.brentq) and a bound-constrained L-BFGS (scipy.optimize.minimize(method="L-BFGS-B", jac=True)).