Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Suppose A n ( a ) is the symmetric n n tridiagonal matrix with the constant value a on its main diagonal and - 1

Suppose An(a) is the symmetric nn tridiagonal matrix with the constant value a on its main diagonal and -1 on the sub- and super-diagonals and let b=Ae, where e is a vector of ones. Produce a jupyter notebook which plots a graph that shows the following three things:
The number of iterations it takes the conjugate gradient method to solve the system An(a)x= b with an error tolerance of 10-5 for a given value of n as a varies from 2 to 10.
The number of iterations it takes the SOR method with =1.2 to solve the system An(a)x=b with an error tolerance of 10-5 for a given value of n as a varies from 2.5 to 10.
The number of iterations it takes the SOR method with =1.5 to solve the system An(a)x=b with an error tolerance of 10-5 for a given value of n as a varies from 2.5 to 10.
Plot these graphs for n=10,n=100 and n=500.
image text in transcribed

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

Online Market Research Cost Effective Searching Of The Internet And Online Databases

Authors: John F. Lescher

1st Edition

0201489295, 978-0201489293

More Books

Students also viewed these Databases questions