摘要: import numpy as np import math from scipy.optimize import minimize,Bounds def func(x): return sum(math.sqrt(x[i]) for i in range(100)) def con(x): ret 阅读全文
posted @ 2024-10-21 23:32 明天11234 阅读(14) 评论(0) 推荐(0)
摘要: ef X(n): # 差分方程的解 return 2 * (-1)**(n + 1) n_values = [0, 1, 2, 3, 4, 5] for n in n_values: print(f"X({n}) = {X(n)}") print("学号:3028") import networkx 阅读全文
posted @ 2024-10-21 23:17 明天11234 阅读(17) 评论(0) 推荐(0)