python中解方程
摘要:
```
from sympy import *
import numpy as np
from numpy import linalg # 方程中的符号
x = Symbol('x')
# 计算
result1 = solve(x**2 - 2*x - 2, x)
print("result1[0] = %s" %float(result1[0])) result2 = solve((np.e... 阅读全文
posted @ 2019-06-21 18:58 小明他很忙 阅读(1448) 评论(0) 推荐(0) 编辑