Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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.
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started