Skip to content

nguyen2f/matrix-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Matrix Calculator

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

System Requirements

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

Running from .exe file

Download the main.exe file from matrix-calculator\dist. Run the main.exe file.

Running from source code

  1. Install Python 3.12.4 (latest) from python.org.
  2. Install the required libraries using the command: pip install tkinter
  3. Run the program using the command: python main.py

User Guide

Main Interface

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.

Basic Calculations

Operations with 1 matrix

  1. Enter the matrix to be calculated in the matrix 1 box or select the matrix 1 file.
  2. Press the "Transpose" or "Inverse" button.
  3. The result of the calculation will be displayed.

Operations with 2 matrices

  1. Enter the two matrices to be calculated in the matrix 1, matrix 2 boxes or select the matrix 1 file, matrix 2 file.
  2. Press the "Add 2 matrices" or "Subtract 2 matrices" or "Multiply 2 matrices" button.
  3. The result of the calculation will be displayed.

Example

Below is an example of how to use the program:

  1. Enter matrix A:

    1 2 3 4

  2. Enter matrix B:

    5 6 7 8

  3. Select the "Add" calculation.

  4. Result: 6 8 10 12

Contact and Contributions

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].

matrix-calculator

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published