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]

Discover more from Tips and Hints for Aerospace Engineers

Subscribe now to keep reading and get access to the full archive.

Continue reading