Skip to content

Gaussian elimination calculator for solving systems of linear equations with multiple unknown variables, written in java

License

Notifications You must be signed in to change notification settings

freb97/gaussian-elimination-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gaussian Elimination Calculator

A calculator for the gaussian elimination algorithm to solve systems of linear equations with multiple unknown variables, written in Java.

This project is intended for education purposes. For understanding the maths behind it, the calculator has a built-in calculation path step trace, and an easy-to-use GUI. Note that the calculator will only change a given matrix to the reduced row echelon form, from which the solution vector can be read.

This calculator currently only works with uniquely solvable matrices.

The core of the algorithm is located in the GaussianElimination.java file, with the matrix data being held in an instance of the GaussMatrix.java class.

Calculator program UI

Getting started

Dependencies

Installation

  1. Download and install dependencies
  2. Navigate to the project root directory
  3. Build the application jar file with maven:
$ mvn install

The jar file and build information is then written to the newly created directory targets.

Usage

To run the application, use the maven exec command:

$ mvn exec:exec

If you don't want to use the same VM as maven, you can pass the .jar file to the locally installed java runtime:

$ java -jar ./target/gauss-1.1-jar-with-dependencies.jar

Documentation

To generate the JavaDoc HTML documentation files, run the maven javadoc command:

$ mvn javadoc:javadoc

The generated files are accessible in the directory target/site/apidocs.

Tests

To run only the unit tests, run the maven test command:

$ mvn test

The generated test resulsts are accesible in the directory target/surefire-reports.

About

Gaussian elimination calculator for solving systems of linear equations with multiple unknown variables, written in java

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published