Question: Please solve both questions using MATLAB. Exercises 1. How long did it take your computer to solve the 100 linear systems using (a) the inverse
Please solve both questions using MATLAB.

Exercises 1. How long did it take your computer to solve the 100 linear systems using (a) the inverse of A; (b) the LU factorization; (c) the backslash? Find a different computer and compare the times. Are they the same? 2. Given are the consmption matrix C and demand d 100 101 clear (=[0.1588 0.0064 0.0025 0.0304 0.0014 0.0083 0.1594 0.0057 0.2645 0.0436 0.0099 0.0083 0.0201 0.3413 0.0264 0.1506 0.3557 0.0139 0.0142 0.0070 0.0236 0.3299 0.0565 0.0495 0.3636 0.0204 0.0483 0.0649 0.0089 0.0081 0.0333 0.0295 0.3412 0.0237 0.0020 0.1190 0.0901 0.0996 0.1260 0.1722 0.2368 0.3369 0.0063 0.0126 0.0196 0.0098 0.0064 0.0132 0.0012]; 102 103 104 105 106 107 108 109 110 111 112 113 114 115 d = [ 74000 56000 10500 25000 17500 196000 5000]; What is the production vector x? How large an m is required to get the first three digits right when using the approximation (I C)-1 ~I+C + C2 + C3 + ... + Cm ? Exercises 1. How long did it take your computer to solve the 100 linear systems using (a) the inverse of A; (b) the LU factorization; (c) the backslash? Find a different computer and compare the times. Are they the same? 2. Given are the consmption matrix C and demand d 100 101 clear (=[0.1588 0.0064 0.0025 0.0304 0.0014 0.0083 0.1594 0.0057 0.2645 0.0436 0.0099 0.0083 0.0201 0.3413 0.0264 0.1506 0.3557 0.0139 0.0142 0.0070 0.0236 0.3299 0.0565 0.0495 0.3636 0.0204 0.0483 0.0649 0.0089 0.0081 0.0333 0.0295 0.3412 0.0237 0.0020 0.1190 0.0901 0.0996 0.1260 0.1722 0.2368 0.3369 0.0063 0.0126 0.0196 0.0098 0.0064 0.0132 0.0012]; 102 103 104 105 106 107 108 109 110 111 112 113 114 115 d = [ 74000 56000 10500 25000 17500 196000 5000]; What is the production vector x? How large an m is required to get the first three digits right when using the approximation (I C)-1 ~I+C + C2 + C3 + ... + Cm
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
