# Function that will accept a matrix and return a matrix Solution

Write a function that will accept a matrix and return a matrix. The function should take the passed matrix and using Gauss Elimination put zeros in the first column of the matrix. The first step is to put the row with the largest absolute value in the first row by swapping rows using functions you have already created. Then calculate the factor necessary to multiply the first row by so that when it is added to the second row, the element in row 2 column 1 becomes zero. Use your linear combination function to accomplish this task. Then move down to the next row. Keep looping through the rows until all the elements in column 1, except row 1, are zero. The function should work with any size matrixâ€”not necessarily square.

For example, if the matrix

is passed to the function, the function would return

For example, if the matrix

is passed to the function, the function would return

You'll get 1 file (525.0bytes)