Mon Feb 24 07:57:58 2020 solvematrix_test R version 3.4.4 (2018-03-15) solvematrix(A,b) solves A*x=b by transforming the linear system to row reduced echelon form (RREF). The matrix A: [,1] [,2] [,3] [1,] 5 8 6 [2,] 5 2 5 [3,] 5 2 4 The RREF of A: [,1] [,2] [,3] [1,] 1 0 0 [2,] 0 1 0 [3,] 0 0 1 Right hand side b of A*x=b [1] 39 24 21 Solution x of A*x=b [1] 1 2 3 The matrix B: [,1] [,2] [,3] [,4] [1,] 2 4 3 7 [2,] 4 9 6 3 [3,] 2 4 7 9 The RREF of B: [,1] [,2] [,3] [,4] [1,] 1 0 0 24.75 [2,] 0 1 0 -11.00 [3,] 0 0 1 0.50 The matrix C: [,1] [,2] [,3] [1,] 2 5 3 [2,] 8 1 8 [3,] 5 2 4 The RREF of C: [,1] [,2] [,3] [1,] 1 0 0 [2,] 0 1 0 [3,] 0 0 1 solvematrix_test Normal end of execution. Mon Feb 24 07:57:58 2020