摘要: 8.4 点击查看代码 #学号17 import numpy as np import matplotlib.pyplot as plt from scipy.integrate import solve_ivp def system(t, state): x, y = state dxdt = -x 阅读全文
posted @ 2024-11-18 17:27 ..3017 阅读(13) 评论(0) 推荐(0)
摘要: 7.1 点击查看代码 #学号17 import numpy as np import scipy.interpolate as spi import scipy.integrate as spi_integrate def g(x): return ((3*x**2 + 4*x + 6) * np. 阅读全文
posted @ 2024-11-18 17:24 ..3017 阅读(18) 评论(0) 推荐(0)
摘要: 2.1 点击查看代码 #学号17 import numpy as np import matplotlib.pyplot as plt x = np.linspace(-5, 5, 400) y_cosh = np.cosh(x) y_sinh = np.sinh(x) y_half_exp = 0 阅读全文
posted @ 2024-10-27 21:57 ..3017 阅读(27) 评论(0) 推荐(0)
摘要: 6.1 点击查看代码 #学号17 import networkx as nx import matplotlib.pyplot as plt G = nx.Graph() nodes = ['v1', 'v2', 'v3', 'v4', 'v5', 'v6'] G.add_nodes_from(no 阅读全文
posted @ 2024-10-27 21:37 ..3017 阅读(28) 评论(0) 推荐(0)