This is a simple C++ program that solves a system of linear equations using the Gauss elimination method. The program supports user input for matrices of size up to 10x10.
- Solves a system of linear equations of the form Ax = B using Gauss elimination.
- Accepts user input for matrices of size up to 10x10.
-
Clone the repository:
git clone https://github.com/Parth-2005/System-of-equation-solver.git
-
Compile the program:
g++ -o solver main.cpp
-
Run the executable:
./solver
-
Follow the on-screen instructions to input the coefficients of the system of equations. Ensure that the input matrix does not exceed the size of 10x10.
The program will prompt you to input the coefficients and constants of the system of equations. Example input for a system of three equations with three variables:
Enter the coefficients and constants of the matrix [A|B] (3x4):
2 3 -1 1
4 -2 3 -2
3 2 -4 3
Here, the last column represents the constants of the system.
Consider the system of equations:
2x + 3y - z = 1
4x - 2y + 3z = -2
3x + 2y - 4z = 3
The program will output the solution for x, y, and z.
Contributions are welcome! If you have suggestions, enhancements, or bug fixes, feel free to open an issue or create a pull request.
This project is licensed under the MIT License.