The Matrix Calculator is a Java Swing-based application designed to perform various matrix operations. It provides a user-friendly interface for computing determinants, performing Gauss-Jordan elimination, calculating transposes, inverses, and powers of matrices, as well as for matrix multiplication, addition, and subtraction. The application allows customization of matrix dimensions and includes features for clearing matrices or filling them with zeros or random numbers.
- Matrix Operations: Supports determinant calculation, Gauss-Jordan elimination, transpose, inverse, power, multiplication, addition, and subtraction of matrices.
- Customizable Matrix Dimensions: Allows users to set the dimensions of the matrices for the calculations.
- User-Friendly Interface: Easy-to-use interface created with Java Swing, providing buttons for various operations and input fields for matrix entries.
- Additional Utilities: Includes options to clear matrices, fill matrices with zeros, or generate random numbers for matrix entries.
- Prerequisites: Ensure you have Java and Java Swing installed on your machine.
- Clone the Repository:
git clone https://github.com/tianhg28/matrix-calculator cd matrix-calculator/src
- Run the Application:
javac MainFrame.java java MainFrame
- Start the application by running the
MainFrame
class. - Select the desired matrix operation from the available buttons.
- Enter the dimensions for the matrix (or matrices) involved in the operation.
- Input the matrix elements or use the utility buttons to fill the matrices.
- Click on the operation button (e.g., 'Determinant', 'Multiply') to perform the calculation and view the result.
- MainFrame: The main class that initiates the application and presents the operation options.
- DetCalc: Handles the determinant calculation of a matrix.
- TwoMatrixFrame: Manages operations involving two matrices such as Gauss-Jordan, Transpose, Inverse, Power.
- ThreeMatrixFrame: Facilitates operations involving three matrices such as Multiplication, Addition, and Subtraction.
Contributions to improve the Matrix Calculator are welcome. Feel free to fork the repository, make changes, and submit pull requests.
This project is licensed under MIT. Please see the LICENSE.md file for more details.