from sympy import * import numpy as np # 方程中的符号 x = Symbol('x') 计算 result = solve(x**2 - 2*x - 2, x) print(float(result[0])) result = solve((np.e)**((5-x)**2) - 8, x) print(result)
python中解方程
原文:https://www.cnblogs.com/komean/p/11066327.html