Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 927 Bytes

README.md

File metadata and controls

25 lines (18 loc) · 927 Bytes

Gauss-Jordan Elimination Algorithm

Welcome to the Gauss-Jordan Elimination Algorithm! 🚀

This Python script, gaussJordan.py, implements the Gauss-Jordan elimination method. It takes user input to create a matrix and performs Gauss-Jordan elimination to solve systems of linear equations or find the inverse of the matrix.

How to Use

  1. Download the gaussJordan.py file.
  2. Run the script using a Python interpreter.
  3. Follow the prompts to input the matrix size and values, and specify pivot element coordinates.
  4. The script will display matrix transformation steps, solving for pivot elements and pivot values, until you exit with invalid pivot coordinates.

Example

Here's an example of using the script:

$ python gaussJordan.py
Enter Number of rows: 3
Enter Number of columns: 3
Enter Numbers in Matrix 11: 2
Enter Numbers in Matrix 12: 1
Enter Numbers in Matrix 13: -1
... (input continues)