Test Case


Each of the solution methods we will define in the EqnSolver class will be tested using the following 4x4 system of equations.

Equation 19.3

graphics/19equ03.gif


During the development of this chapter, the solution methods were tested over a wide variety of systems of equations, but only results for the system of equations shown in Eq. (19.3) will be presented in this chapter. Eq. (19.4) shows the solution vector for this system of equations.

Equation 19.4

graphics/19equ04.gif


There is a problem with the system of equations shown in Eq. (19.3). The three methods we will use, Gauss-Jordan elimination, Gaussian elimination , and Lower-Upper (LU) decomposition, are unstable under certain circumstances. One of those circumstances is when the top-left diagonal element is zero, as it is (intentionally) for our test problem. Round-off error is another way in which the system can become unstable. One of the ways that stability can be restored to the solution process is by using a technique called pivoting.



Technical Java. Applications for Science and Engineering
Technical Java: Applications for Science and Engineering
ISBN: 0131018159
EAN: 2147483647
Year: 2003
Pages: 281
Authors: Grant Palmer

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net