Matrix Calculator is a simple graphical interface program that helps you perform basic matrix calculations such as finding the transpose, inverse, or adding, subtracting, and multiplying two matrices
Windows 7/8/10/11 (if you package it into an .exe file) Python 3.x (if you run from source code) Python libraries: Tkinter
Download the main.exe file from matrix-calculator\dist. Run the main.exe file.
- Install Python 3.12.4 (latest) from python.org.
- Install the required libraries using the command: pip install tkinter
- Run the program using the command: python main.py
When you open the program, you will see the main interface of the Matrix Calculator. Here, you can perform the following actions:
Input matrix: Enter the matrix elements on the keyboard or load from a txt file.
Select calculation: Choose one of the 5 calculations on the interface.
View results: The result will be displayed on the screen.
Save results: The result will be saved when you enter the file name to save.
- Enter the matrix to be calculated in the matrix 1 box or select the matrix 1 file.
- Press the "Transpose" or "Inverse" button.
- The result of the calculation will be displayed.
- Enter the two matrices to be calculated in the matrix 1, matrix 2 boxes or select the matrix 1 file, matrix 2 file.
- Press the "Add 2 matrices" or "Subtract 2 matrices" or "Multiply 2 matrices" button.
- The result of the calculation will be displayed.
Below is an example of how to use the program:
-
Enter matrix A:
1 2 3 4
-
Enter matrix B:
5 6 7 8
-
Select the "Add" calculation.
-
Result: 6 8 10 12
If you have any questions or encounter issues, please contact us via email: [Nguyen.NP227138@sis.hust.edu.vn] or [nguyen.nguyenphuc.dev@gmail.com].