# hw5 - (5) S = S * S T = inv ( S ) (1) The exact inverse of...

This preview shows page 1. Sign up to view the full content.

MATH 343:001 (11814) Applied Linear Algebra Fall 2009 Homework 5 Due Friday, November 13 Turn in answers to the following problems. Section 5.5: 6, 20, 23, 36 Section 5.6: 4, 8, 22, 44 MATLAB PROBLEM. Use the diary command to report the results of this problem. After you have “debugged” your code do a clean run and store the result in a ﬁle by typing diary on before you start and diary oﬀ at the end. You can then edit the text ﬁle ’diary’ that has been created, to answer the questions below. If you use the command a second time it will add to (NOT REPLACE) the original ﬁle. I only want a single run so make sure to clean up your diary ﬁle before printing if you did more. Set the following in MATLAB S = round (10 * rand (5)) S = triu ( S, 1) + eye
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: (5) S = S * S T = inv ( S ) (1) The exact inverse of S should have integer entries. Why? Explain. Check the entries of T using format long . Round the entries of T to the nearest integer by setting T = round ( T ). Compute T * S and compare with eye (5). (2) Set in addition A = triu ( ones (5) , 1) + diag (1 : 5) B = S * A * T The matrices A and B both have the eigenvalues 1, 2, 3, 4, and 5. Use MATLAB to compute the eigenvalues of B . How many digits of accuracy are there in the computed eigenvalues. Use MATLAB to compute and compare each of the following: (a) det( A ) and det( B ) (b) trace ( A ) and trace ( B ) (c) SA 2 T and B 2 (d) SA-1 T and B-1 Gerardo Laerriere, November 5, 2009...
View Full Document

## This note was uploaded on 10/16/2011 for the course MTH 343 taught by Professor Lafferier during the Spring '09 term at Portland State.

Ask a homework question - tutors are online