Wednesday, August 31, 2011

Gaussian Elimination and its applications


solving set of equations
we can solve the set of equations by applying gaussian elimination
for details of gaussian elimination algorithm see the following link gaussian elimination
gaussian elimination is the technique for solving
equations for more than two variables for details see Wikipedia here are the linear equation are as follows

x + 2y - z - 2e = -6
x + 3y - z - 2e= -4
2x + y + z + e= 11
3x + y + 2z + e=15

the echelon form is given by floating point numbers

the code first asks input row and colums including the augmented matrix
then ouputs each of the particular answers
the output i.e. 
1st variable is 
x = 1.000000 
2nd variable is
y = 2.000000 
3rd variable is
z = 3.000000 
4th variable is
e = 4.000000 

here is the link you will try more test cases with my code gaussian elimination code in c
there at particular point in this site written upload with new input click on it and enter the
1) row including the echelon form of the matrix
2) column including the echelon form of the matrix
3) matrix including echelon form
and click on submit and see results
i will come up with more applications of the gaussian eliminations soon...

favicon

1 comment:

  1. u hv done nice job man ...
    a nice learning attempt for all now

    ReplyDelete