domenica 8 maggio 2016

Systems of Linear Equations : Gaussian algorithm in java

Gaussian elimination(named after Carl Friedrich Gauss) is an algorithm for solving systems of linear equations . It consists to trasform a matrix into an upper triangular matrix . 
In this post I propose you a small java application that solves linear equations using gaussian algorithm. 
If you click here,you can download the jar file of the application : Gaussian elimination

How does it work?
As soon as you open the application , you will see a window dialog that will ask you the number of linear equations .


Insert the equation number and click the button "OK". After that, you have to insert  the coefficient of the " n "  variables of the system :

Then ,click the button "Calculate".
Here's an example:
Let's consider this system of linear equations:

Solutions will be :







Nessun commento :

Posta un commento