摘要: import numpy as np inf = 99999 # 不连通值 mtx_graph = [[0, 1, inf, 3, inf, inf, inf, inf, inf], [1, 0, 5, inf, 2, inf, inf, inf, inf], [inf, inf, 0, 1, in 阅读全文
posted @ 2022-07-31 22:59 故y 阅读(205) 评论(0) 推荐(0)
摘要: from collections import defaultdict from heapq import * # 堆--先进后出 inf = 99999 # 不连通值 mtx_graph = [[0, 1, inf, 3, inf, inf, inf, inf, inf], [1, 0, 5, i 阅读全文
posted @ 2022-07-31 16:43 故y 阅读(188) 评论(0) 推荐(0)
摘要: 六个模型的区别 SI-Model import scipy.integrate as spi import numpy as np import matplotlib.pyplot as plt # N为人群总数 N = 10000 # β为传染率系数 beta = 0.25 # gamma为恢复率 阅读全文
posted @ 2022-07-31 16:37 故y 阅读(742) 评论(0) 推荐(0)
摘要: import numpy as np from scipy.integrate import odeint from mpl_toolkits.mplot3d import Axes3D import matplotlib.pyplot as plt def dmove(Point, t, sets 阅读全文
posted @ 2022-07-31 10:01 故y 阅读(221) 评论(0) 推荐(0)
摘要: import numpy as np from scipy import integrate import matplotlib.pyplot as plt import sympy def plot_direction_field(x, y_x, f_xy, x_lim=(-5, 5), y_li 阅读全文
posted @ 2022-07-31 09:57 故y 阅读(242) 评论(0) 推荐(0)