例题2.35

例题2.35代码

import numpy as np
a = np.array([[3, 1], [1, 2], [1, 1]])
b = np.array([9, 8, 6])
x = np.linalg.pinv(a) @ b
print(np.round(x, 4))


posted @ 2024-10-22 22:04  等我刷把宗师  阅读(2)  评论(0编辑  收藏  举报