https://github.com/andrewrgarcia/math-tools
Handy math tools to have.
https://github.com/andrewrgarcia/math-tools
Last synced: 3 months ago
JSON representation
Handy math tools to have.
- Host: GitHub
- URL: https://github.com/andrewrgarcia/math-tools
- Owner: andrewrgarcia
- License: gpl-3.0
- Created: 2020-01-30T22:01:40.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-04-04T20:23:12.000Z (about 3 years ago)
- Last Synced: 2025-01-16T15:26:55.792Z (4 months ago)
- Language: Python
- Homepage:
- Size: 116 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Math tools by Andrew
Handy math tools to have.## msolver.py
Solves the iconic **A x = b** matrix equation from a terminal Python function call.
#### The script has changed! See the quick examples below to learn
In your command line/ terminal, type any of the following `python msolver.py` commands :```ruby
#matrix "A" and vector "b" both specified in separate Excel files named **A.xlsx** and **b.xlsx**, respectively both in the local folder [i.e. in the same folder as msolver.py]:
python msolver.py -pA A.xlsx -pb b.xlsx#matrix "A" specified in an Excel file named **A.xlsx** in the local folder and a "b" vector defined in the terminal as b = [6 6 6 3 3 3]:
python msolver.py -pA A.xlsx -b 6 6 6 3 3 3#LINUX: matrix "A" specified in an Excel file named **A2.xlsx** in the Desktop directory and a "b" vector specified in an Excel file **b.xlsx** in the local folder:
python msolver.py -pA $HOME/Desktop/A2.xlsx -pb b.xlsx'''matrix "A" and vector "b" both specified IN the terminal (not recommended for large matrices)
A = | 1 4 3 |
| 2 3 1 |
| 2 10 2 |
b = | 12 |
| 43 |
| 65 |
''':
python msolver.py -A 1 4 3 2 3 1 2 10 2 -dA 3 3 -b 12 43 65```