Gaussian Elimination

This lab was fairly complicated since it involved writing a matrix class that supported intensive functions, such as inversion and finding the determinant, that worked on matrices of nth order. After writing the matrix class, I had to write a program that would use gaussian elimination to solve systems of equations of any order. In this example, I used the following system of equations:



After running the program, it outputted the solution for each of the variables in the system of equations:



This sort of program is very useful since solving large systems of equations by hand would require untold hours of work by a mathematician. The computer is able to do hours or days of work in mere seconds.

Files:

Source Code and Executable