A Java program to solve linear equation, interpolation, and multiple linear regression problems using matrix manipulation
Authors |
---|
Dionisius Darryl H. |
Rehagana Kevin C. S. |
Rizky Anggita S. S. |
MatriX is a program written in java with the following capabilities
- 1. Solving linear equation using Gauss and Gauss-Jordan elimination technique, Inverse Matrix, and Cramer's Rule
- 2. Solving interpolation and linear regression problems
- 3. Calculate the determinant of a matrix with various methods such as row reduction and cofactor expansion
matrix
├── bin
│ └── Matriks.class
│ └── Program.class
│ └── SPL.class
│
├── src
│ └── Matriks.java
│ └── Program.java
│ └── SPL.java
│
├── docs
│ └── Laporan-Algeo01-19058.docx
│ └── Laporan-Algeo01-19058.pdf
│
├── test
│ └── ... .txt (Studi kasus 1-8)
│ └── ..._ans.txt (Hasil studi kasus 1-8)
│
└── README.md
This program is made with Java 11.0.8 :
openjdk 11.0.8 2020-07-14
OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.8+10)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.8+10, mixed mode)
To run the program, simply follow this command:
cd bin
java Program
To compile the program, use the following command:
cd src
javac Program.java
This program could take an input from an external file.
Masukkan direktori file eksternal: ../test/1a.txt
It also can save the result of a calculation in a .txt file.
Masukkan nama file: outputprogram
The result will be stored as outputprogram.txt in the default directory test
.