subject
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)

ansver
Answers: 1

Another question on Engineering

question
Engineering, 03.07.2019 14:10
When at a point two solid phase changes to one solid phase on cooling then it is known as a) eutectoid point b) eutectic point c) peritectic point d) peritectoid point
Answers: 3
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
For a gate width of 2 m into the paper, determine the force required to hold the gate abc at its location.
Answers: 1
question
Engineering, 04.07.2019 19:20
A21-tooth spur pinion mates with a 28-tooth gear. the diametral pitch is 3 teeth/in and the pressure angle is 20°, find the following values: the addendum, dedendum, circular pitch, tooth thickness, and base circle diameters.
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 −1] , b...
Questions