equations = [
Eq(N_bRd, X_c * f_y * A * gamma_M1),
Eq(L_c, L * beta),
Eq(N_cr, (pi) ** 2 * E_E * i / (beta * L) ** 2),
Eq(lamda, sqrt(N_bRd / N_cr)),
]
results = solve(equations)
# results = solve(equations, [m_A,m_D,theta_c,theta_b,delta])
results
我在sympy上遇到了以下错误 符号代数:
pi doesn't seem to be an algebraic element
当我把π改成3.14的时候,它工作得很好。你知道吗
公共mathematical constants在
mpmath
模块(一个sympy
依赖项)中定义:从
sympy
docs开始:相关问题 更多 >
编程相关推荐