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, 03.07.2019 14:10
If the thermal strain developed in polyimide film during deposition is given as 0.0044. assume room temperature is kept at 17.3 c, and thermal coefficient of expansion for the film and the substrate are 54 x 10^-6c^-1 and 3.3 x 10^-6c^-1respectively. calculate the deposition temperature.
Answers: 3
question
Engineering, 04.07.2019 18:10
Steel is coated with a thin layer of ceramic to protect against corrosion. what do you expect to happen to the coating when the temperature of the steel is increased significantly? explain.
Answers: 1
question
Engineering, 04.07.2019 18:10
Shafts are machine elements that are used to a) carry axial loads b) direct shear loads c) transmit power d) rotate at constant speed e) none of the above circular and square shafts subjected to the same torque under the same circum behave a) the same way b) almost the same way
Answers: 2
question
Engineering, 04.07.2019 18:20
Acertain flow of air (at stp) has a velocity distribution given by v i (in ft/s). if this flow is going through a 4 ft square area in the yz-plane (centered at the origin), what is the mass flow rate (in lbm/s)?
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, 30.05.2021 01:10
question
Social Studies, 30.05.2021 01:20
question
Chemistry, 30.05.2021 01:20
Questions on the website: 13722367