An C/C++ implementation for solving N equations with N unknowns with the help of Gaussian elimination.
The input file should be a CSV (Comma-Separated Values) file containing the augmented matrix of the system of equations. The matrix should have n
rows and n+1
columns, where the last column represents the constants on the right-hand side of the equations. The elements of the matrix should be numeric values.
For reference or for testing, use input file's like Book2.csv and Book1.csv.
The program handles the following errors:
- If the input file does not exist, an error message is displayed, and the program terminates.
- If the system of equations has no solution or infinite solutions, an appropriate message is displayed, and the program terminates.
This program is released under the MIT License.
This program was written by Bharat Singh on 24/11/22. Some minor modifications were made on 5/12/22 like reading negative fractions and cleaning the code.