Giter Site home page Giter Site logo

mohesmail143 / linear-equations-solver Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 173 KB

A Python-based linear equation solver CLI application that allows a user to input a number of linear equations and choose any one of 4 numerical methods (Gaussian-elimination, LU decomposition, Gaussian-Jordan and Gauss-Seidel), along with their respective parameters, to solve the equations.

License: MIT License

Python 100.00%
gauss-jordan gauss-seidel gaussian-elimination gui linear-algebra linear-equation-solver lu-decomposition numerical-analysis numerical-methods python tkinter

linear-equations-solver's Introduction

Linear Equations Solver

A Python-based linear equation solver CLI application that allows a user to input a number of linear equations and choose any one of 4 numerical methods (Gaussian-elimination, LU decomposition, Gaussian-Jordan and Gauss-Seidel), along with their respective parameters, to solve the equations.

This project was developed as part of the course Numerical Analysis in the Spring 2022 semester at the Faculty of Engineering, Alexandria University, under the Computer and Communications Engineering department, supervised by Dr. Zeinab Eid.

Features

The program contains the following features:

  • An interactive GUI that enables the user to enter a set of linear equations.
  • Reading from files, following this format:
    • 1st line: number of equations
    • 2nd line: Method Name (e.g. 'Gaussian-elimination')
    • 3rd line --> nth line: equations
    • last line: Space separated initial points (e.g. 1.1 2)
  • A dropdown menu to choose a method to solve the given equation.
  • Textboxes to enter the precision and the max number of iterations otherwise default values are used, Default Max Iterations = 50, Default Epsilon = 0.00001;
  • Display of answer for the chosen method indicating the number of iterations (if exists), execution time, all iterations’ approximate root and precision.
  • Test cases are available in the file test_cases.zip for the user to try out each method.

Prerequisites

This project was developed in the following environment:

  • PyCharm Community 2023.3.4
  • Miniconda
  • Python 3.11.5
  • matplotlib 3.8.0
  • NumPy 1.26.4
  • SymPy 1.12

Installing

1- Clone the repository to your local machine:

git clone https://github.com/MohEsmail143/linear-equations-solver.git

2- Open PyCharm Community.

3- Click on Run 'main' button for the file main.py. The following window should appear:

Opening Screen of Linear Equations Solver

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

linear-equations-solver's People

Contributors

mohesmail143 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.