Find a linear system of equations (i.e. find the A and b of the equation Ax=b) w
ID: 2945386 • Letter: F
Question
Find a linear system of equations (i.e. find the A and b of the equation Ax=b) where…- A is a 5x5 matrix
- A is non-symmetric
- B is a nonzero vector
- If solved, EVERY iteration of Jacobi would be identical to every iteration of Gauss-Seidel.
I have tried a few on MATLAB, but the only matrix I could come up with was a 3x3 matrix, and even then, the Jacobi and Gauss-Seidel methods yield a different number of iterations..
My initial work (not correct, as A is a 3x3 matrix)
A = [7 3 1;
2 -9 4;
1 -4 12];
b = [18; 12; 6];
Thank you for your help!
Explanation / Answer
Any 5x5 matrix where the diagonal is non-zero and all other elements are zero will work. If this is the case, each element will be determined by: x_i = (1/a_ii) * (b_i - sum(x_i * 0)) so... x_i = (1/a_ii) * (b_i) x_i will then be the same for all iterations
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.