Question: Write python functions from scratch to solve system of linear equations using following iterative methods: a) Jacobi's Iterative Method b) Gauss Seidel Method c)

Write python functions from scratch to solve system of linear equations using 

Write python functions from scratch to solve system of linear equations using following iterative methods: a) Jacobi's Iterative Method b) Gauss Seidel Method c) Successive Over Relaxation Method Your implementation should be general to handle any number of equations and any number of variables. Check your implementation on the following test problem: 2.412x+9.879y+ 1.564z = 4.89 1.876x+2.985y - 11.62z = -0.972 12.214x + 2.367y+ 3.672z = 7.814 Compare the number of iterations required until convergence using above methods (use error tolerance of 10-5). Also draw the convergence plot for each method.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!