This Python project provides functions for solving linear systems of equations using the Gaussian elimination method. The implementation includes functions for obtaining coefficients, calculating determinants, performing Gaussian elimination, back-substitution, and displaying solutions.
Prompt the user to enter the number of unknowns and populate a matrix with coefficients for a linear system.
Calculate the determinant of a square matrix using NumPy's np.linalg.det
function.
Perform Gaussian elimination on an augmented matrix to transform it into upper triangular form.
Solve a linear system in upper triangular form using back-substitution.
Combine Gaussian elimination and back-substitution for efficient solution finding.
Print the solution vector in a readable format.
Main entry point: obtain coefficients, calculate determinant, and solve the linear system using Gaussian elimination.
-
Clone the repository:
git clone https://github.com/Kaoutherbo/Gaussian_Elimination-Method.git
-
Navigate to the project directory:
cd Gaussian-Elimination-Method
-
Run the main script:
python main.py
Follow the on-screen instructions to input coefficients and obtain solutions.
- NumPy: Installation instructions
If you would like to contribute to this project, please follow the guidelines in CONTRIBUTING.md.
This project is licensed under the MIT License.