摘要: 4.3 import matplotlib.pyplot as plt import numpy as np import cvxpy as cp x=cp.Variable(6,pos=True) obj=cp.Minimize(x[5]) a1=np.array([0.025, 0.015, 0 阅读全文
posted @ 2024-10-22 16:57 cjl110 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 3.2 import sympy as sp def solve_difference_equation(): n = sp.symbols('n', integer=True) x = sp.Function('x') eq = sp.Eq(x(n + 2) - x(n + 1) - 2 * x( 阅读全文
posted @ 2024-10-22 16:37 cjl110 阅读(3) 评论(0) 推荐(0) 编辑