subject
Engineering, 14.02.2020 05:47 shelbylynn17

Enter the matrix A and the vector b in MATLAB:

A = [4 1 2 −3; −3 3 −1 4; −1 2 5 1; 5 4 3 −1] , b = [−16;20;−4;−10]

The exact solution to the system Ax = b is the vector x = (−1, 1, −2, 3)^T .

(a) Enter [L, U,P] = lu(A) to find the LU decomposition of the matrix P A (don’t forget that you will need P*b). Verify that P A = LU.

(b) Use the LU decomposition you found in part (a) to solve the system Ax = b. Call the computed solution x_lu.

(c) Enter the vector x and compare your solution x lu from part (b) with the exact solution x by computing norm(x_lu - x)

ansver
Answers: 3

Another question on Engineering

question
Engineering, 04.07.2019 03:10
What precautions should you take to prevent injuries when dealing with heavy loads?
Answers: 1
question
Engineering, 04.07.2019 18:10
Acompressor receives the shaft work to decrease the pressure of the fluid. a)- true b)- false
Answers: 3
question
Engineering, 04.07.2019 19:10
A)-in the process of engineering design, explain the contribution of material selection. b)- explain the procedure of synthesis as is employed in engineering design. c)- is there any relationship between ergonomics and engineering design? explain. d)- safety consideration in engineering design includes human, product and the enviroment . explain how safety will be incorporated into the design?
Answers: 3
question
Engineering, 04.07.2019 19:10
Plan an experiment to measure the surface tension of a liquid similar to water. if necessary, review the ncfmf video surface tension for ideas. which method would be most suitable for use in an undergraduate laboratory? what experimental precision could be expected?
Answers: 2
You know the right answer?
Enter the matrix A and the vector b in MATLAB:

A = [4 1 2 −3; −3 3 −1 4; −1 2 5 1; 5 4 3...
Questions
question
Mathematics, 24.02.2020 23:19
question
Mathematics, 24.02.2020 23:20
Questions on the website: 13722367