Question: Show what Matlab code you need to solve with (a)the Jacobi Method and (b) the Gauss Seidel Method the following linear system Ax = b

Show what Matlab code you need to solve with (a)the Jacobi Method and (b) the Gauss Seidel Method the following linear system Ax = b to within 10-5 in the linfinity norm, where the entries of A are

ai,j = 2i when j = i and i = 1,2 ...80,

0.5i when j = i +2 and i = 1,2...78,

j= i - 2 and i = 3,4...80

0.25i when j= i + 4 and i = 1,2...76,

j= i - 4 and i = 5,6...80

0 otherwise

I understand the Matrix is going to look like

A = 2, 0, 0.5, 0, 0.25, ....

0, 4, 0, 1, 0, .5, 0....

1.5, 0, 6, 0, 1.5, 0...

0, 2, 0, 8, 0, 0.....

1.25, 0, 2.5, 0, 10, 0 ....

0, 1.5, 0, 3, 0, 12...

and so on until i = 80. I just do not know how to put this huge Matrix into Matlab and find how many iterations I would need for the Jacobi and Gauss-Seidel Methods

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 Databases Questions!