![]() ![]() In both cases, x is the final solution vector and i returns the number of iterations. As you can see, SOR reaches machine precision in about 100 iterations at which point Gauss-Seidel is about 25 orders of magnitude worse. Compute relaxation factor after k+p iterations. I have created the below code for each of them, however my final solution vector does not return the correct answers and i'm really struggling to figure out why. Gauss-Seidel method with relaxation (the program should work with any value of n). I need to code the Gauss Seidel and Successive over relaxation iterative methods in Matlab. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |