竞争无处不在,青春永不言败!专业撸代码,副业修bug

Talk is cheap , show me the code!



华为在线学习

在线学习

import numpy as np

"""
10X + 8 Y + 12 Z = 20
4X + 4Y + 2 Z = 8
2X -4 Y -2Z = -5
"""
k_matrix = np.array([[10,8,12],
          [4,4,2],
          [2,-4,-2]])

result_matrix = np.array([[20],[8],[-5]])
x_matrix = np.linalg.solve(k_matrix,result_matrix)

print(x_matrix)

posted @ 2019-06-11 11:01  云雾散人  阅读(279)  评论(0编辑  收藏  举报

Your attitude not your aptitude will determine your altitude!

如果有来生,一个人去远行,看不同的风景,感受生命的活力!