Question: ( a ) The exact solution of the system A x = b should be the vector z . Why? Explain. One could compute the

(a) The exact solution of the system Ax=b should be
the vector z. Why? Explain. One could compute the
solution in MATLAB using the "???" operation or by
computing A-1 and then multiplying A-1 times b.
for both speed and accuracy. One can use MAT
LAB's tic and toc commands to measure the
elapsed time for each computation. To do this, use
the commands
tic, x=A??b; toc
tic, y=inv(A)**b; toc
Which method is faster?
To compare the accuracy of the two methods,
we can measure how close the computed solutions
x and y are to the exact solution z. Do this with the
commands
max(?abs(x-z))
max(?abs(y-z))
Which method produces the most accurate solution?
(b) Repeat part (a), using n=500 and n=1000. I want both Matlab process and also answer each questions.
( a ) The exact solution of the system A x = b

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Programming Questions!