Question: (a) Write a program for GaussSeidel iteration. (b) Apply the program A(t)x = b, to starting from [0 0 0] T , where

(a) Write a program for Gauss–Seidel iteration.

(b) Apply the program A(t)x = b, to starting from [0    0    0]T, where

(a) Write a program for Gauss–Seidel iteration. (b) Apply the program A(t)x

For t = 0.2, 0.5, 0.8, 0.9 determine the number of steps to obtain the exact solution to 6S and the corresponding spectral radius of C. Graph the number of steps and the spectral radius as functions of t and comment.

(c) Show that by adding and subtracting x(m) on the right, formula (6) can be written

= b, to starting from [0    0    0]T, where For

Anticipation of further corrections motivates the introduction of an over relaxation factor ω > 1 to get the SOR formula for Gauss–Seidel

t = 0.2, 0.5, 0.8, 0.9 determine the number of steps to

intended to give more rapid convergence. A recommended value is ω = 2/(1 + √1 - ρ) where ρ is the spectral radius of C in (7). Apply SOR to the matrix in (b) for t = 0.5 and 0.8 and notice the improvement of convergence. (Spectacular gains are made with larger systems.)

Step by Step Solution

3.37 Rating (166 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

a Heres a program for GaussSeidel iteration in Python import numpy as np def gaussseidelA b initialguess maxiterations100 tolerance1e6 n lenA x initia... View full answer

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 Advanced Engineering Mathematics Questions!