Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started