06 2019 档案
摘要: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 = (-...
阅读全文
摘要: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...
阅读全文
摘要: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 ...
阅读全文
摘要: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
阅读全文
摘要:Transfer function: 写成微分方程: 向前差分: \[y'(t) = \frac{y(t+1)-y(t)}{\Delta T} \\ y(t+1)=y(t)+\frac{\Delta T}{T}(u(t)
阅读全文