摘要: import numpy as np from scipy.integrate import odeint import matplotlib.pyplot as plt # function that returns dz/dt def model(z,t,u): x = z[0] y = z[1] dxdt = (-x + u)/2.0 dydt = (-... 阅读全文
posted @ 2019-06-28 15:03 华小电 阅读(490) 评论(0) 推荐(0) 编辑
摘要: import numpy as np from scipy.integrate import odeint import matplotlib.pyplot as plt # function that returns dz/dt def model(z,t): dxdt = 3.0 * np.exp(-t) dydt = -z[1] + 3 dzdt = [dxdt... 阅读全文
posted @ 2019-06-28 15:02 华小电 阅读(436) 评论(0) 推荐(0) 编辑
摘要: import numpy as np from scipy.integrate import odeint import matplotlib.pyplot as plt # function that returns dy/dt def model(y,t): # u steps from 0 to 2 at t=10 if t<10.0: u = 0 ... 阅读全文
posted @ 2019-06-28 14:59 华小电 阅读(650) 评论(0) 推荐(0) 编辑
摘要: An example of using ODEINT is with the following differential equation with parameter k=0.3, the initial condition y0=5 and the following differential 阅读全文
posted @ 2019-06-28 14:53 华小电 阅读(1209) 评论(0) 推荐(0) 编辑