{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

ASE 211 - Homework 4 Due Feb. 13

# ASE 211 - Homework 4 Due Feb. 13 - [L,U,P]=lu(A It takes as...

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

ASE 211 Homework 4 Due: In class, Wednesday, February 13th. 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 A above (without row piv- oting). Solve for x using the following steps: Ly=b Ux=y Check your answer. 3. This problem should be done in matlab. Once again, consider problem 9.14. Using the matlab lu function, compute the LU = PA factorization 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 LU = PA . Once 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 pump in 9.14 with the following values for Q 1 : Q 1 = 1, 5, 15, 20, 25. Note 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