Am I blind or they are basically the same?
If so, how come mine isn't working properly?
PS- I know this sounds stupid, but I would rather prefer hints instead of a solution. Figuring out the problem by myself (even if with some assistance) is a great way to learn.
@ne555- Thanks for your time mate. You are indeed right, their condition is an infinitenorm but that isn't what really concerns me. You see, each x (solution) vector per iteration is different from theirs, even the mean and variance, mine are much much smaller.
I'm testing if my xi vectors (possible solution vectors) are the same as theirs. I test it by outputting the vectors onto the console.
Tbh, my program does more, e.g. it has to read the matrix and "n" from a txt, parse it, etc. So the problem may be in there...but as far as you can see, the Jacobi iteration itself is fine?
PS- I also have to calc the ||Ax -b|| (after the x solution is found), meaning, this is linear algebra. Will this do the trick?