Return to site

Gauss seidel method program in python

broken image
broken image
broken image

To test your function, note that gs1_iteration(3,5) should return

broken image

In other words, gs1_iteration(x,y) should return the results of performing one iteration of the Gauss-Seidel method for system (1) on the inputs x, y. Using the Gauss-Seidel method and equations (2) and (3). , where new_x is the updated value x_n and new_y is the updated value y_n X and y (which we think of as being x n-1 and y n-1 respectively), and returns a list Define a function, called gs1_iteration, which accepts as input values for

broken image