问题 #including the differential equations and parameters def model(x,dydx,p): s=p[0] #first parameter a=p[1] #second parameter dydx[0] = -2*(s+a)*y[0]+2*s*y[1]+s/2*y[2] dydx[1] = +2*(s+a)*y[1]-2*s*y[0]-s/2*y[2] dydx[2] = -(s+a)*y[2] return np.vstack(dydx[0],dydx[1],dydx[2]) # boundary conditions def bc(ya, yb,yc, p): s=p[0] a=p[1] I0=1 return np.array(([ya[0], yb[0],yc[0],a,s])) #x values x = np.array([1, 2, 3, 4, 5, 6, 7, 8, 9]) y = np.zeros((3, x.size)) #p= np.zeros((3, d.size)) #y initial