Computational Physics, Python, Linear Algebra, Math, Mathematics.
system in the least square error perspective x1 = np.linspace(-5, 5, 1000) x2_1 = -2*x1 + 2 x2_2 = 4*x1 + 8 x2_3 = -1*x1 + 2 plt.plot(x1, x2_1) plt.plot(x1, x2_2) plt.plot(x1, x2_3) plt.xlim(-2., 1) plt.ylim(1, 5) plt.show() We actually see there’s no solution. Putting this into the matrix form we