Engineering
Engineering, 17.10.2019 16:30, alexandroperez13

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)

answer
Answers: 1

Other questions on the subject: Engineering

image
Engineering, 04.07.2019 18:10, qwertylol12345
Different types of steels contain different elements that alter the characteristics of the steel. for each of the following elements, explain what the element does when alloyed with steel.
Answers: 2
image
Engineering, 04.07.2019 18:10, xboxdude06
Slip occurs via two partial dislocations because of (a) the shorter path of the partial dislocation lines; (b) the lower energy state through partial dislocations; (c) the charge balance.
Answers: 1
image
Engineering, 04.07.2019 18:20, DroctorWellsfan
Inspection for bearing condition will include: (clo4) a)-color b)-smell c)-size d)-none of the above
Answers: 1
image
Engineering, 04.07.2019 18:20, sanchez626
Aheavily insulated piston-cylinder device contains 0.02 m3 of steam at 300 kpa and 200 °c. 1.2 mpa. d this process. team is now compressed in a reversible manner to a pressure of etermine the entropy change and the work done on the steam during this process
Answers: 1
Do you know the correct 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 −1] , b...

Questions in other subjects: