© 2001 by CRC Press LLC
Sample Application
GAUSS-JORDAN METHOD
One slight modification of the elimination step will make the backward substi-
tution steps completely unnecessary. That is, during the elimination of the x
i
terms
from the linear algebraic equations except the ith one, Equations 25 and 26 should
be applied for k equal to 1 through N and excluding k = i. For example, the x
3
terms
should be eliminated from the first, second, fourth through Nth equations. In this
manner, after the Nth normalization, [C] becomes an identity matrix and {V} will
have the elements of the required solution {X}. This modified method is called
Gauss-Jordan method.
A subroutine called GauJor is made available based on the above argument. In
this subroutine, a block of statements are also added to include the consideration of
the pivoting technique which is required if c
i,i
= 0. The normalization steps,
Equations 49 and 50, cannot be implemented if c
i,i
is equal to zero. For such a
situation, a search for a nonzero c
i,k
is necessary for i = k + 1,k + 2,…,N. That is,
to find in the kth column of [C] and below the kth row a nonzero element. Once
this nonzero c
i,k
is found, then we can then interchange the ith and kth rows of [C]
and {V} to allow the normalization steps to be implemented; if no nonzero c
i,k
can
be found then [C] is singular because the determinant of [C] is equal to zero! This
can be explained by the fact that when c
k,k
= 0 and no pivoting is possible and the
determinant D of [C] can be calculated by the formula:
(28)
where indicates a product of all listed factors.
Dcc c c c
kk
NN
kk
k
N
=……=
=
∏
11 2 2
1
,,
,
,
,