
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
A computer assignment for math 477/577 students, focusing on matrix operations and graphing functions in matlab. The assignment includes defining matrices, finding sums and products, generating graphs, and verifying solutions. Students are required to submit matlab code and executions for each question.
Typology: Assignments
1 / 1
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.