In Chapter 12, we used finite difference methods to approximate the solution of the heat equation in one spacial variable. We needed to solve a tridiagonal linear system with coefficient matrix
This matrix is strictly row diagonally dominant, and so both the Jacobi and Gauss-Seidel iterations will converge.
Letand solve the linear system withTusing the Jacobi iteration with tol−14 numiter and0
Do part using the Gauss-Seidel iteration.
Do part using SOR with Which value of ω works best
Solve the system using the MATLAB function thomas introduced in Section
Solve the system using the MATLAB command “B\c.”
Compare the results of parts
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here