{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

assign4_Spring_2005

# assign4_Spring_2005 - [L,U,P]=lu(A It takes as input A and...

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

ASE 211 Homework 4 Due: In class, Wednesday, Febuary 16th. 1. Solve (by hand) A x = b where A = 4 - 1 2 - 7 - 5 - 4 2 . 5 2 - 6 . 5 and B = 1 2 3 using Gauss elimination with the row pivoting strategy described in class. Check that A x = b 2. Compute (by hand),the LU factorization of above(without row pivot- ing). Solve for x using the following steps: Ly = b Ux = y Check your answer. 3. This problem should be done in matlab. Consider the truss in problem A3.4 . Using the matlab lu function, compute the LU = PA factor- ization of the matrix. The lu function can be invoked as follows:
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: [L,U,P]=lu(A) It takes as input A and returns L , U and the permutation matrix P such that L * U = P * A . One you have these matrices, to solve a system A x = b , you can use the following commands b=P*b y=L\b x=U\y Use the LU factorization to analyze the truss in A3.4 with the follow-ing choices of W 3 : W 3 = 10, 50, 150, 200, 250. Recall you only need to compute the LU factorization once. Hand in all matlab m-ﬁles, diaries, and scripts....
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online