Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

MatrixCalcs-1.0.0.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

MatrixCalcs-1.0.0-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file MatrixCalcs-1.0.0.tar.gz.

File metadata

  • Download URL: MatrixCalcs-1.0.0.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.1

File hashes

Hashes for MatrixCalcs-1.0.0.tar.gz
Algorithm Hash digest
SHA256 fece369263a46b8e2bcec7dd07efa1057e4a1f6741aa1e529b7e4c51f2581b45
MD5 cb7cc2c22a0455aa6da325e0166b5efc
BLAKE2b-256 3fed6eb0161bf825cc271b29ea080c9a9cd901a1661fb7939bdaaecd0d94c44b

See more details on using hashes here.

File details

Details for the file MatrixCalcs-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: MatrixCalcs-1.0.0-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

Hashes for MatrixCalcs-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 971aecf8450c236598eb55f9244f5433951320473cfda9542585f1bf21031002
MD5 8fe090ea7bab95a696064e58d21d4d62
BLAKE2b-256 3175986aaa8bd500058065fc9c37b0003be1f6fa672fec32525ff432f8a9c31f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page