Fitting two different data sets by two model functions using symfit
问题 I am trying to fit two data sets by two model functions. I tried to do so using symfit . Here the code: from symfit import variables, parameters, Fit, cos, sin, pi, sqrt, asin import numpy as np n0 = 1.5 data = np.genfromtxt('some data') data = 1000 * data pos=[] for j in range( len(data) ): pos.append( np.arcsin( np.sin( np.deg2rad( data[j,0]/1000 ) )/1.5 ) ) m1=[] for j in range( len(data) ): m1.append( data[j,1] ) p1=[] for j in range( len(data) ): p1.append(data[j,3]) zero=[] for j in