ToolPythonBeginner Minimization with scipy.optimize.minimize: the shape of a seven-atom cluster print(f"largest difference to approx_fprime: {np.abs(g - approx_fprime(x5, energy)).max() / np.abs(g).max():.1e} of the largest component")