题目描述:利用scipy库完成编程任务。
求解线性方程组。如公式(1)所示。
import scipy
from scipy import linalg
a=scipy.mat('[5 2 3;2 3 -4;3 -4 -5]')
b=scipy.mat('[6;7;8]')
solve=linalg.solve(a,b)
print(solve)
题目描述:利用scipy库完成编程任务。
求解线性方程组。如公式(1)所示。
import scipy
from scipy import linalg
a=scipy.mat('[5 2 3;2 3 -4;3 -4 -5]')
b=scipy.mat('[6;7;8]')
solve=linalg.solve(a,b)
print(solve)