I am fitting a function to a power law by using
def model_func(t, a, b, c):
return a * np.exp(-b * t) + c
opt_parms, parm_cov = sp.optimize.curve_fit(model_func, x1, y1, maxfev=1000)
a,b,c = opt_parms
The fitted curve looks perfect, but how can I get the exact function printed (like y=a*b^x
)?
Thanks in advance