Hi,
Its my first project. I have to develop a c program which can balance a chemical equation by the method of 'Generalized matrix inverse method for balancing chemical equation and their stability'.
But I am using a little different method. where I am not able to find complete step to find rank of a matrix. I don't be able to develop the algorithm for that.

Main Qus:
starting from a normal matrix how I can make its a part(few columns) a unit matrix by just Adding & Subtracting Rows of that matrix.
Example:
main matrix:
1 0 0 -1 0 1 0 0 0
2 1 1 -3 0 0 1 0 0
0 1 2 -1-1 0 0 1 0
0 1 0 0-1 0 0 0 1

After operation:(r2-2r1;r3-r2;r4-r2;r2-r3;r4+r3;r1+r4;r2+r4)
1 0 0 0 -2 5 -2 1 1
0 1 0 0 -1 0 0 0 1
0 0 1 0 -1 2 -1 1 0
0 0 0 1 -2 4 -2 1 1
please help me as soon as possible....Rahul

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.