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

 Edit the PYTHON code to take user input for the 3x3

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!