Work in small groups at the computer to solve the following exercises.
|
|
|
|
|
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
|
Which method produces the most accurate solution?
|
tic and toc, test which method is
the fastest to solve the system of linear equations Ax=b among the
three: with the INV function, with the \ operator and
with the rank-1 update.