import numpy as np A = np.array([[4, 3, -5],[-2, -4, 5],[8, 8, 0]]) y = np.array([2, 5, -3]) x = np.linalg.solve(A, y) print(x)
Result:
[ 2.20833333 -2.58333333 -0.18333333]
Nov 19, 2021 | python | 0 comments
import numpy as np A = np.array([[4, 3, -5],[-2, -4, 5],[8, 8, 0]]) y = np.array([2, 5, -3]) x = np.linalg.solve(A, y) print(x)
Result:
[ 2.20833333 -2.58333333 -0.18333333]
Subscribe now to keep reading and get access to the full archive.
Recent Comments