![]() 13 7 3 3 5 1 5 3 12 A If a system of linear equations is not diagonally dominant, check to see if rearranging the equations can form a. This is different from the Jacobi method where all. In the Gauss-Seidel method, the system is solved using forward substitution so that each component uses the most recent value obtained for the previous component. ![]() plot_surface ( Y, X, U_exact, cmap = cm. Gauss-Seidel Method The Gauss-Seidel Method can still be used The coefficient matrix is not diagonally dominant 5 3 12 3 5 1 13 7 3 A But this is the same set of equations used in example 2, which did converge. The Gauss-Seidel method offers a slight modification to the Jacobi method which can cause it to converge faster. ![]() # enable 3D plotting import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D from matplotlib import cm from import spsolve u_exact = spsolve ( A, f ) print ( 'norm of the residual = grid points'.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |