Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2. Write a program for solving AX = b using the Gauss-Seidel method using the function gauss Seidel.. Input should consist of the matrix

 

2. Write a program for solving AX = b using the Gauss-Seidel method using the function gauss Seidel.. Input should consist of the matrix A and the vector B. a) Test the program with 3 -2 1 0 0 1 10 -2 4 -2 1 0 0 -8 1 -2 4 -2 1 0 10 A = b = 0 1 -2 0 0 1 -2 1 0 0 1 -2 3 4 -2 1 10 4 -2 -8 10 Note that A is not diagonally dominant, but this does not necessarily preclude convergence. b) Solve the same programme, now using underrelaxation with =0.5 and then =0.8. How is convergence affected?

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Fundamentals Of Biostatistics

Authors: Bernard Rosner

8th Edition

130526892X, 978-1305465510, 1305465512, 978-1305268920

More Books

Students also viewed these Programming questions

Question

Let be given two vectors Find all vectors z with x, y B" with x

Answered: 1 week ago

Question

Let x and y be two elements of B n . Show that 1 ||X|| = n - ||x||;

Answered: 1 week ago