I would also recommend using a root finder (like sp.optimize.newton) since it’s much faster; the use of a least-squares minimization was just an illustrative hack.
1 Like
I would also recommend using a root finder (like sp.optimize.newton) since it’s much faster; the use of a least-squares minimization was just an illustrative hack.