plot_surface ( Y, X, U_exact, cmap = cm. Below is the Python Code for a 50x50 Matrix. jacobian gauss-seidel finite-difference-method point-successive-over-relaxation. A similar method can be used for any slowly converging iterative process. This is the MATLAB code and Python code written to solve Laplace Equation for 2D steady state heat-conduction equation using various FDM techniques. # 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'. I have done the programming for gauss-seidel method,which is working for all inputs,except the following equation. In numerical linear algebra, the method of successive over-relaxation (SOR) is a variant of the GaussSeidel method for solving a linear system of equations, resulting in faster convergence.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |