Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Edit the PYTHON code to take user input for the 3x3 matrix A and will still solve for x . No need to change matrix

image text in transcribed

Edit the PYTHON code to take user input for the 3x3 matrix A and will still solve for x. No need to change matrix b.

14 12 det runTaski(): A = np.array([[3, 2, 1], [4, 5, 2], [1, 3, ]], dtype=float) In [1]: b = np.array([10, 20, 28), dtype=float) L, U = LU(A) x = LUsolve(L, U, b) print("L is ", L) print("U is ", u) print("x is ", x)

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 Systems Design Implementation And Management

Authors: Peter Rob, Carlos Coronel

6th International Edition

061921323X, 978-0619213237

More Books

Students also viewed these Databases questions