Skip to content

This project is a System of Equations Solver built using Cramer's Rule in Python with Streamlit. It allows users to input and solve systems of linear equations in real-time by visualizing them as matrices and generating solutions for variables π‘₯ , 𝑦 , 𝑧, etc.

License

Notifications You must be signed in to change notification settings

ashishpatel8736/soq-solver-cramer

Repository files navigation

πŸ“Š System of Equations Solver using Cramer's Rule

Welcome to the System of Equations Solver! This app, built with Streamlit, allows you to solve systems of linear equations using Cramer's Rule. You can input your equations in matrix form, visualize them dynamically, and get a step-by-step solution.


πŸš€ Features

  • Matrix Representation:

    • Input your system of equations as a coefficient matrix (A) and a constant vector (B).
    • Dynamically display the system in the form (AX = B), where:
      • (A): Coefficient matrix
      • (X): Variables (x, y, z,...)
      • (B): Constants vector
    • Beautiful LaTeX-rendered matrices and equations.
  • Equation Visualization:

    • Automatically generates equations from your matrix inputs.
    • Displays them with proper formatting in an easy-to-read form.
  • Dynamic Input Handling:

    • Supports integer and float values:
      • Integers are displayed without decimals (e.g., (5)).
      • Floats are displayed with two decimal places (e.g., (5.20)).
  • Scalable:

    • Solve systems with 2 to 10 variables.
    • Easily adapt to any problem size.
  • Real-time Solutions

    • Get solutions for (x, y, z,...) instantly after clicking "Solve".
    • Handles errors gracefully if the system is unsolvable, such as when the determinant of the coefficient matrix is zero.

πŸ–₯️ Screenshots

1. Input System of Equations

Input the coefficient matrix (A) and constants vector (B) using a simple interface:

Input Matrix


2. Visualize (AX = B)

View your system of equations in matrix form:

AX = B Display


3. Solution

Get the solution for (x, y, z,...) in real-time:

Solution


πŸ§‘β€πŸ’» Usage

Prerequisites

  • Python 3.7 or higher
  • Streamlit library installed

Installation

  1. Clone this repository:

    git clone https://github.com/ashish/soq-solver-cramer.git
    cd system-of-equations-solver
  2. Install dependencies:

    pip install -r requirements.txt
  3. Run the app:

    streamlit run app.py
  4. Open the app in your browser at http://localhost:8501.


πŸ“‚ Project Structure


β”œβ”€β”€ README.md                           
β”œβ”€β”€ app.py                  
β”œβ”€β”€ solve_cramers_rule.py   
β”œβ”€β”€ requirements.txt        
β”œβ”€β”€ ax_b_ss.png              
β”œβ”€β”€ LICENSE             
β”œβ”€β”€ equation_ss.png               
β”œβ”€β”€ solu_ss.png
β”œβ”€β”€ icons8-github-50.png                           

🀝 Contributing

Contributions are welcome! If you have ideas for new features or want to improve the app, feel free to fork the repository and submit a pull request.


πŸ“„ License

This project is licensed under the MIT License. See the LICENSE file for details.


πŸ‘€ Author

Ashish Patel
GitHub | LinkedIn


🌟 Acknowledgments

  • Built with Streamlit for an interactive interface.
  • Inspired by the elegance of Cramer's Rule in linear algebra.

Enjoy solving your systems of equations effortlessly! πŸŽ‰

About

This project is a System of Equations Solver built using Cramer's Rule in Python with Streamlit. It allows users to input and solve systems of linear equations in real-time by visualizing them as matrices and generating solutions for variables π‘₯ , 𝑦 , 𝑧, etc.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages