Question: I am trying to write a python program to read in a matrix, and compute the inverse. I want to write the original matrix and
I am trying to write a python program to read in a matrix, and compute the inverse. I want to write the original matrix and results to an output .txt file. The input files have the matrix size as the first line. (A single number, the matrixs are square), and then one entry per line. for a 4 x 4 matrix, the first line would be 4, and the next 4 lines are the first row, the next 4 lines are the second row, etc. I am new to python and am trying to learn the functions and keywords to perform these operations. Comments in the code for what each line does would be greatly appreciated so I may continue to build my knowledge of the libraries and functions.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
