摘要:
```python def firstorder(T,K,t,In): # T 时间常数 # K 增益 Out = np.zeros(len(In)) for i in range(1,len(t)): dt = t[i]-t[i-1] s = T/dt Out[i] = K*In[i]/(s+1) 阅读全文
摘要:
import numpy as np import statsmodels.api as sm from gekko import GEKKO # Data x0 = np.array([4,5,2,3,-1,1,6,7]) x1 = np.array([3,2,3,4, 3,5,2,6]) y = 阅读全文
摘要:
import numpy as np from scipy.stats import linregress import statsmodels.api as sm import matplotlib.pyplot as plt from gekko import GEKKO # Data x = 阅读全文
摘要:
使用openpyxl保存数据到Excel文件报错:BadZipFile: File is not a zip file 如果保存的文件不存在,直接用pd.ExcelWriter 如果保存的文件已存在,用openpyxl.load_workbook加载已有的文件, 再使用pd.ExcelWriter 阅读全文