Question: Im writing a code for a Gauss-Seidel algorithm and this is my error at the FoundSolution=1. Im not too sure why this is not correct.

Im writing a code for a Gauss-Seidel algorithm and this is my error at the FoundSolution=1. Im not too sure why this is not correct. If you need the rest of my code feel free to ask.Im writing a code for a Gauss-Seidel algorithm and this is myerror at the FoundSolution=1. Im not too sure why this is not

A-fliplr (vander (1:1:5)): b= [1,2,3,4,5]; n=length (b) ; x= zeros (n, 1) ; xo1d=zeros(n, 1) ; for k-1:1000 i=1 : n x(1)=0 .0 for end j=1:n if for ji x(1)=x ( 1) + (A ( 1 , j ) *xold ( j ) ) end end if max (abs (A*x-b) )

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!