Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

A = np . random.normal , size = ( n , n ) np . identity ( n ) b = n p . random.normal

A= np.random.normal , size =(n,n) np.identity (n)
b=np. random.normal , size =(n,1)
Two cases: (1)n=150,(2)n=250(here np means numpy)
Ax=b
A and b : We use the same A and b as in Problem )=150,n=(250
(i) Use Python or MATLAB to construct the Jacobi algorithm and find the solution
(ii) Use Python or MATLAB to construct the Gauss-Seidel algoroithm and find the solution
(iii) For both algorithms, you obtain the convergence plot of the solution (as I provided in the slides)
(iv) Plot ||x-xk||2 for each k where x is the true solution (you can use "numpy.linalg.solve" in Python or "linprog" in MATLAB to obtain the true solution) and x-k is the solutions obtained from the two algorithms ((i) and (ii)) in each step.
compare the computation time and accuracy of
Jacobi Algorithm
Gauss-Seidel algorithm
numpy.linalg.solve in Python or linprog in MATLAB
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

Practical Neo4j

Authors: Gregory Jordan

1st Edition

1484200225, 9781484200223

More Books

Students also viewed these Databases questions

Question

What role does a demand-pull system have on lean manufacturing? LO1

Answered: 1 week ago

Question

Are your goals SMART?

Answered: 1 week ago