![]() ![]() plot_surface ( Y, X, U_exact, cmap = cm. 2.7 example217.py program to solve n simultaneous equations (tridiagonal) by the Gauss-Seidel method with relaxation 2.7 example218.py program to solve n. Co-efficeint matrix, contant vector, initial guesses and tolerence are be prompted for user input. # 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'. This matlab script can solve a system of linear equations by Gauss Seidel method, an iterative method.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |