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 18:10
Aflywheel accelerates for 5 seconds at 2 rad/s2 from a speed of 20 rpm. determine the total number of revolutions of the flywheel during the period of its acceleration. a.5.65 b.8.43 c. 723 d.6.86
Answers: 2
question
Engineering, 04.07.2019 18:10
Give heat transfer applications for the following, (i) gas turbines (propulsion) ) gas turbines (power generation). (iii) steam turbines. (iv) combined heat and power (chp). (v) automotive engines
Answers: 1
question
Engineering, 04.07.2019 18:10
At 12 noon, the count in a bacteria culture was 400; at 4: 00 pm the count was 1200 let p(t) denote the bacteria cou population growth law. find: (a) an expression for the bacteria count at any time t (b) the bacteria count at 10 am. (c) the time required for the bacteria count to reach 1800.
Answers: 1
question
Engineering, 04.07.2019 18:10
Machinery that is a key part of the process and without which the plant or process cannot function is classifed as: (clo4) a)-critical machinery b)-essential machinery c)-general purpose machinery d)-none of the specified options.
Answers: 1
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
History, 26.06.2019 15:30
Questions on the website: 13722367