update arg_fit.py.

Signed-off-by: Sgr A* VMT <1611902585@qq.com>
This commit is contained in:
Sgr A* VMT
2023-11-27 07:56:00 +00:00
committed by Gitee
parent 4736e520ef
commit bbc3051c2b

View File

@@ -104,6 +104,7 @@ while(1):
print("please make sure you have move the 4 data file to IDM folder\n请确认你有把4个文件拷到IDM文件夹内") print("please make sure you have move the 4 data file to IDM folder\n请确认你有把4个文件拷到IDM文件夹内")
break break
#反向求值 #反向求值
model=TempModel(1,-2.1429828e-05,-1.8980091e-10,3.6738370e-16,2943053.84,20.33)
p0=[-2.1429828e-05,-1.8980091e-10,3.6738370e-16] p0=[-2.1429828e-05,-1.8980091e-10,3.6738370e-16]
params, params_covariance = curve_fit(fit,np.arange(5,80,0.01),np.hstack(datas),p0=p0,maxfev=1000000,ftol=1e-10,xtol=1e-10) params, params_covariance = curve_fit(fit,np.arange(5,80,0.01),np.hstack(datas),p0=p0,maxfev=1000000,ftol=1e-10,xtol=1e-10)
for path in paths: for path in paths: