Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/teloryfrozy/3x3-gaussian-elimination
Small Gaussian Elimination Method implementation
https://github.com/teloryfrozy/3x3-gaussian-elimination
Last synced: 21 days ago
JSON representation
Small Gaussian Elimination Method implementation
- Host: GitHub
- URL: https://github.com/teloryfrozy/3x3-gaussian-elimination
- Owner: teloryfrozy
- License: gpl-3.0
- Created: 2023-10-01T13:32:38.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-24T08:49:13.000Z (about 1 year ago)
- Last Synced: 2024-11-06T12:23:38.660Z (2 months ago)
- Language: Ruby
- Size: 21.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 🧮 Gaussian Elimination Method for Solving a 3x3 Linear System 📊
This Python program implements the Gaussian Elimination method to solve a system of three equations with three unknowns. Given a matrix of coefficients and a vector of numbers, it calculates the values of x, y, and z, providing a solution to your linear system.
### 🚀 Usage
_Replace the matrix M and vector S in the code with your specific coefficients and numbers.
Run the program._```python
M = [[1, 2, -1], [2, 3, 1], [1, 1, 1]]
S = [4, 17, 9]
solution = gaussian_elimination(M, S)
print(solution)
```
The program will display the solution, including the values of x, y, and z.### 💡 Example
For the provided example:
```python
M = [[1, 2, -1], [2, 3, 1], [1, 1, 1]]
S = [4, 17, 9]
```
The program will output:The solution to the system is:
x = 1.0
y = 2.0
z = 3.0### 📜 License
This program is open-source and free to use without restrictions.