📅  最后修改于: 2022-03-11 14:46:00.501000             🧑  作者: Mango
A = np.array([[4, 3, 2], [-2, 2, 3], [3, -5, 2]]) # matrix
b = np.array([25, -10, -4]) # b vector
X = np.linalg.inv(A).dot(b) # returns values for x, y and z
#or
X = np.linalg.solve(A, b)