so maybe there was an error in the last steps when
re-substituting the answers from the last rows
z and y in to x.(According to the Gauss-Elimination Method)
Line 40 of GaussianEliminationFlawed.java had a loop that did not
reach to the first row, to re-substitute back in to (x):
// now we have to resubstitute
for (int i = dimension-1 ; i > 0; i--) {
//change to >= to include the first ROW for X
for (int i = dimension-1 ; i >= 0; i--) {
By changing the code, the vector showed the correct value for x:
and the test passed. result=(-.2,4,-.8)