This C project provides functionality for performing various matrix operations including calculating determinants, inverses, and solving systems of equations.
- Determinant Calculation: Calculate the determinant of a square matrix using the Gaussian elimination method.
- Matrix Inverse: Compute the inverse of a square matrix using Gaussian elimination with partial pivoting.
- System of Equations Solver: Solve a system of linear equations represented in matrix form (Ax = b) using matrix inversion.
- Clone the repository to your local machine:
gh repo clone hossein-rahmati/Matrix-Operations
- Navigate to the project directory:
cd Matrix-Operations
- Compile the source code using a C compiler (e.g., GCC)
After compiling the source code, you can run the executable matrix_operations. The program provides a simple command-line interface for interacting with the matrix operations.
- Determinant Calculation:
- Enter the dimensions of the square matrix.
- Input the elements of the matrix.
- The program will calculate and display the determinant of the matrix.
- Matrix Inverse:
- Enter the dimensions of the square matrix.
- Input the elements of the matrix.
- If the matrix is invertible, the program will calculate and display its inverse.
- System of Equations Solver:
- Enter the dimensions of the coefficient matrix.
- Input the elements of the coefficient matrix and the constant vector.
- If the system is solvable, the program will solve it and display the solution vector.
Contributions are welcome! If you have any ideas, suggestions, or bug fixes, feel free to open an issue or create a pull request.