![]() Gaus-seidel (Written by: Manas Sharma - University of Delhi)Äouble a //declare a 2d array for storing the elements of the augmented matrixÄouble x //declare an array to store the values of variablesįor (i=0 i<<"\n-" Äo //Perform iterations to calculate x1,x2.xnįor (i=0 i ![]() ![]() The Gauss Seidel method is very similar to Jacobi method and is called as the method of successive displacement. So I wrote this piece of code for solving a system of linear equations using Gauss-Seidelâs Iterative method in the fifth semester of my undergraduate course for my Numerical Analysis Class. The Gauss-Seidel Method allows the user to control round-off error. The program should prompt the user to input the convergence criteria value, number of equations and the max number of.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |