Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing

Authors: David M. Kroenke

12th Edition International Edition

1292023422, 978-1292023427

More Books

Students also viewed these Databases questions

Question

Describe the job youd like to be doing five years from now.

Answered: 1 week ago

Question

So what disadvantages have you witnessed? (specific)

Answered: 1 week ago