I want to calculate the minimum distance between two atoms by means of the Lennard Jones potential. The formula I want to use is:
V(r) = C12/r^12 - C6/r^6 where C12 = 1 and C6 = 10
The following construct of the function including variables was already given and the solutions for this example should be 0.764724.
My idea is to use the "minimum"-function but I have absolutely no clue how to use it. Not even after reading the SciPy manual. How should I start?
import numpy as np
from scipy.optimize import minimize, leastsq, least_squares, curve_fit
def get_minimum_energy_distance(C12, C6):
my code