
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

Math 477/577 Computer Assignment 1 Charles Tier
For each question, please submit the Matlab code along with an execution of the code.
(a) Verify that the exact solution of Ax = b is z. Explain why. (b) The solution of Ax = b can be found in Matlab using the ”\” operation or by comput- ing A−^1 and finding A−^1 b. Compare the speed of the two methods using Matlab’s tic and toc commands to measure the elapsed time for each computation. Which method is faster? (c) Compare the accuracy of the two methods using the command: max(abs(x-z)). Explain what is being measured and which method is more accurate. (d) repeat if n = 1000.
(a) for loops (b) the sum function
Test the function with n = 10, 50.