Answered step by step
Verified Expert Solution
Question
1 Approved Answer
A = np . random.normal , size = ( n , n ) np . identity ( n ) b = n p . random.normal
nprandom.normal size npidentity
random.normal size
Two cases: here means numpy
A and : We use the same A and as in Problem
i Use Python or MATLAB to construct the Jacobi algorithm and find the solution
ii Use Python or MATLAB to construct the GaussSeidel 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 for each where is the true solution you can use "numpy.linalg.solve" in Python or "linprog" in MATLAB to obtain the true solution and is the solutions obtained from the two algorithms i and ii in each step.
compare the computation time and accuracy of
Jacobi Algorithm
GaussSeidel algorithm
numpy.linalg.solve in Python or linprog in MATLAB
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