- #1
XodoX
- 203
- 0
Homework Statement
Evaluate the number of iterations that are needed to have 10^-9 precision with the Jacobi, Gauss-Seidel, and SOR ( with ω=1.5) methods. Compare these 3 methods for different values of n - for instance 3≤n≤20. Plot the convergence curves for the 3 methods for each n.
Homework Equations
Just the regular formulas for each, I guess.
http://en.wikipedia.org/wiki/Jacobi_method etc.
The Attempt at a Solution
No idea how to do it. Let's start with Jacobi. What is exactly the n here and where do I plug it in? I don't understand it. I guess you just plug in the 3≤n≤20, calculate the result and then plot the curve. For Jacobi, is the Matrix A the n in this case?
Help is very much appreciated!