A matrix calculator in your command line.
Project description
Matrix Calculator
Simple and usable in the terminal/command line.
Build a matrix of any size row by row.
More features will be added in the future.
Easy start
Make sure you have at least Python 3.10 installed on your computer with pip.
$ pip3 install matrixCalculator
Furthermore, use the terminal/commandline to start the app:
$ matcalc
The following should appear:
Use <help> command to have more information.
Matrix Calc > [Command]
Use 'create' command to create your first and main matrix.
Matrix Creation
Matrix Calc > create
This should appear:
==========================================================
Please enter your matrix row by row.
Make sure each row has the same number of elements.
Follow the following formats:
Format 1:
Enter row: 1, 2, 3, 4
Format 2:
Enter row: 1 2 3 4
When done, input 'done' or press Enter key. (Not case sensitive)
==========================================================
Just enter one row after the other following the formats above and input done when you are finished building your matrix.
Documentation
The calculator can hold up to two different matrices at the same time, your main matrix and the 'other' matrix. The main matrix is always on the left side of the equation.
Single matrix
With your matrix, you have multiple possibilities:
| Code | Effect |
|---|---|
| create | Create your main matrix. |
| det | Gives the determinant of your matrix if possible |
| trans | Gives the transpose of your matrix |
| invert | Gives the invert of your matrix if possible |
| add | Gives the possibility to add another matrix |
| show [flag] | Show matrix -m (main) |
| use | Use operation result and store it |
| clear | Clears the window. |
| restart | Restart with a new matrix |
| help | Gives the list of commands |
| exit | Exit the application |
Two matrices
After adding another matrix, using 'add' mentioned above, you have other possibilities:
| Code | Effect |
|---|---|
| back | Go back to your first matrix only |
| madd | Matrix addition if possible |
| sub | Matrix subtraction if possible |
| dot | Dot product if possible |
| cross | Cross product if possible |
| switch | Switches order of the main and 'other' matrix |
| show [flag] | Show matrix -m (main) -o (other) -b (both) |
| use | Use operation result and store it |
| clear | Clears the window. |
| help | Gives the list of commands |
| restart | Restart with a new matrix (both) |
| exit | Exit the application |
Command 'use'
The use command needs two options, the operation and where to store it.
Matrix Calc > use [operation] [location]
The possible operations are:
- transpose (trans)
- inversion (invert)
- addition (madd)
- subtraction (sub)
- dot product (dot)
- cross product (cross)
The possible locations are:
- Main matrix (m or -m)
- Other matrix (o or -o)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file MatrixCalcs-1.0.1.tar.gz.
File metadata
- Download URL: MatrixCalcs-1.0.1.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7dda0eb1b005b1f1f8ff45d50c19a5fd0fd2693e343f57b31bd3ea254054d64d
|
|
| MD5 |
208844f63449e2979e24a22f6258337d
|
|
| BLAKE2b-256 |
6eef2e2d9120fbc4619e53d7993e7b67755f71d74fcb2ea5da334b43f34de917
|
File details
Details for the file MatrixCalcs-1.0.1-py3-none-any.whl.
File metadata
- Download URL: MatrixCalcs-1.0.1-py3-none-any.whl
- Upload date:
- Size: 9.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
68742fcc5be0acb33ae309caf927e8a3617b3260771a8dad4aed4728820f3f5e
|
|
| MD5 |
e9847dfce36e6373fffedea843a640d5
|
|
| BLAKE2b-256 |
d35eb4cbf9328b39a678563904d74a47709cbfc1d73c34252bc95b4bf96464a4
|