I rewrite a matlab code in python but they result different outputs
I rewrite a matlab code in python but they result different outputs Question: the matlab code and the output i was expecting (gauss elimination method) my code in python: import numpy as np A = np.array([ [1,2,-1,1], [-1,4,3,1], [2,1,1,1]]) n = rows = len(A) col = len(A[0]) for i in range(n): A[i,:] = A[i,:] / …