Skip to content

A Python implementation of Gaussian Elimination to solve systems of linear equations. Features include row swapping, forward elimination, back substitution, inconsistency detection, and relative error computation using NumPy.

Notifications You must be signed in to change notification settings

itswarvan/Gaussian-Elimination-Python

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Gaussian Elimination in Python

Description

This project solves systems of linear equations using Gaussian Elimination and Back Substitution, implemented in Python with NumPy.

Features

  • Forward elimination to row echelon form
  • Back substitution to find solutions
  • Row swapping for pivoting
  • Inconsistency detection

Usage

  1. Edit the augmented matrix A in the script:
A = np.array([
    [ 2, -3,  2,  3],
    [ 1, -1, -2, -1],
    [-1,  2, -3, -4]
])
  1. Run the script:
python gaussian_elimination.py
  1. Output includes the reduced matrix and solution vector.

Requirements

  • Python 3.x
  • NumPy

License

Free to use and modify.

About

A Python implementation of Gaussian Elimination to solve systems of linear equations. Features include row swapping, forward elimination, back substitution, inconsistency detection, and relative error computation using NumPy.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%