
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 a math course (math 477/577) focusing on solving least squares problems using different methods and analyzing matrix exponentials. Students are required to write matlab code and submit the results for each question. Question 1 involves defining a matrix a and vector b for a polynomial fitting problem, and calculating the least squares solution using five different methods: normal equations, modified gram-schmidt qr factorization, standard qr factorization, direct solution, and singular value decomposition (svd). Question 2 requires students to write a program to plot the norm of the matrix exponential eta on a log scale for a random matrix a and compare it to the straight line etα(a) where α(a) is the spectral abscissa. Ten random matrices are to be analyzed, and students are expected to discuss the results.
Typology: Assignments
1 / 1
This page cannot be seen from the preview
Don't miss anything!

Math 477/577 Computer Assignment 3 Charles Tier
For each question, please submit the Matlab code along with an execution of the code.
(a) Formation and solution by the normal equations using MATLAB’s \ command. (b) QR factorization computed using a routine mgs that you must write that uses the mod- ified Gram-Schmidt. (c) QR factorization using MATLAB’s qr. (d) x = A\b. (e) SVD using MATLAB’s svd.
You should produce 5 table of twelve coefficients. In each list, use a red pen to circle the digits that appear to be incorrect due to rounding error. Explain the differences.
etA^ =
k=
Ak^ t
k k!.
Use randm and expm to deal with normally distributed random numbers and matrix expo- nentials, respectively.