Viva questions for unit A2¶
Choose three or four. Ask the student to answer with their own code and report in front of them.
About the code¶
Show me where your Gauss–Seidel sweep uses the newest values, and where Jacobi deliberately does not.
Why does your sweep work on a copy of
x? What would go wrong if it changedxitself?In your SOR sweep, which value of \(x_i\) appears in the \((1 - \omega)\) term, and why?
What does your SOR sweep do when \(\omega = 1\)? Show it.
About the results¶
Gate G3 compares an average observed factor with \(\rho(T)\) on a specified Poisson problem. Under what conditions does the spectral radius describe the eventual error decay? How can transients or the initial error change what you observe?
Why does Gauss–Seidel need about half as many sweeps as Jacobi on the 1D Poisson problem? Is Gauss–Seidel always better? (Point to L6.)
Why do Jacobi’s sweeps grow about four times when \(n\) doubles, but SOR’s only about twice?
L5 is symmetric positive definite. Why does Jacobi still diverge on it?
Your relative residual is \(10^{-8}\). What can you say about the error, and why?
When would you use
numpy.linalg.solveinstead of these methods?
About the project¶
What does your project add beyond the unit’s provided systems?
How did you choose your stopping tolerance, and what evidence supports it?