12-Amethyst
January 28, 2022
Solved
Gauss-Seidel Iteration
- January 28, 2022
- 1 reply
- 4028 views
Can someone help me with my program?
I think I am lost in doing a program in Gauss-Seidel Method of Iteration.
Thank you in Advance.
The (j<i) and (j>i) serve to exclude the item in the sum where j=i,
What you need to understand is that (j<i) is a boolean construct that results in 1 if j indeed is smaller than i. As soon as j=i, or is larger, the value of (j<i) becomes 0, so effectively the summand is zero'd for this indices. Likewise for the second sum uses (j>i) to set all summands to zero when j=i, or less.
There's another way to simplify the program:

Success!
Luc
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.