Question: 2. Suppose that A is a square, nonsingular, nonsymmetric matrix, b is an n-vector, and that you have called L, U, p = cs111. LUfactor

2. Suppose that A is a square, nonsingular, nonsymmetric matrix, b is an n-vector, and that you have called L, U, p = cs111. LUfactor (A) (using the routine from the lecture files). Now suppose you want to solve the system A?x=b (not Ax = b) for x. Show how to do this using calls to cs 111. Lsolve () and cs111. Usolve(), without modifying either of those routines or calling cs111.LUfactor() again. You are allowed to transpose matrices L and U, that is, you may work with L.T and U.T. Test your method in numpy on a randomly generated 6-by-6 matrix and show the code and output in Jupyter. 2. Suppose that A is a square, nonsingular, nonsymmetric matrix, b is an n-vector, and that you have called L, U, p = cs111. LUfactor (A) (using the routine from the lecture files). Now suppose you want to solve the system A?x=b (not Ax = b) for x. Show how to do this using calls to cs 111. Lsolve () and cs111. Usolve(), without modifying either of those routines or calling cs111.LUfactor() again. You are allowed to transpose matrices L and U, that is, you may work with L.T and U.T. Test your method in numpy on a randomly generated 6-by-6 matrix and show the code and output in Jupyter
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
