Question: [20 Marks] Consider the following linear system 3x + 2y4z - w = -9 7x-3y5z...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Question: [20 Marks] Consider the following linear system 3x + 2y4z - w = -9 7x-3y5z + 2w = -6 x+y+z+w = 10 2xy + 5z - 3w = 3 a) Solve the system using Matlab/Octave rref, backslash, and the inverse commands. Call the solution X. Compute the spectral radius of the coefficient matrix. c) Use the 2-norm to Compute the condition number of the coefficient matrix. What the number tells you about the matrix. d) Use Matlab/Octave code to solve the system using the Jacobi method starting with initial value X (0) = (0.5,0.5,0.5,0.5, 0.5). Call the solution XJ. Print 10 iterations. [4] e) Use Matlab/Octave code to solve the system using the Gauss-Seidel method starting with initial value X (0) (0.5,0.5,0.5,0.5, 0.5). Call the solution XGS. Print 10 iterations. [4] f) Use Matlab/Octave code to compute the ||X- XJ||2 and ||X - XGS||for the errors in the approximation. [3] g) Are the two numerical methods converging to the solution? Which method is better to use. Justify your answer. [2] [3] [2] [2] Question: [20 Marks] Consider the following linear system 3x + 2y4z - w = -9 7x-3y5z + 2w = -6 x+y+z+w = 10 2xy + 5z - 3w = 3 a) Solve the system using Matlab/Octave rref, backslash, and the inverse commands. Call the solution X. Compute the spectral radius of the coefficient matrix. c) Use the 2-norm to Compute the condition number of the coefficient matrix. What the number tells you about the matrix. d) Use Matlab/Octave code to solve the system using the Jacobi method starting with initial value X (0) = (0.5,0.5,0.5,0.5, 0.5). Call the solution XJ. Print 10 iterations. [4] e) Use Matlab/Octave code to solve the system using the Gauss-Seidel method starting with initial value X (0) (0.5,0.5,0.5,0.5, 0.5). Call the solution XGS. Print 10 iterations. [4] f) Use Matlab/Octave code to compute the ||X- XJ||2 and ||X - XGS||for the errors in the approximation. [3] g) Are the two numerical methods converging to the solution? Which method is better to use. Justify your answer. [2] [3] [2] [2]
Expert Answer:
Answer rating: 100% (QA)
This question presents a series of tasks related to a given linear system of equations Below Ill outline the steps one would follow to address each part of the question though I must note that I cant ... View the full answer
Related Book For
Introduction to Operations Research
ISBN: 978-1259162985
10th edition
Authors: Frederick S. Hillier, Gerald J. Lieberman
Posted Date:
Students also viewed these programming questions
-
5. Problem 6.5.8 In this problem we show directly that the sum of independent Poisson random variables is Poisson. Let J and K be independent Poisson random variables with expected values a and ,...
-
(i) Write down the linear program relaxation for the vertex cover problem and solve the linear program. [6 marks] (ii) Based on the solution of the linear program in (b)(i), derive an integer...
-
can someone solve this Modern workstations typically have memory systems that incorporate two or three levels of caching. Explain why they are designed like this. [4 marks] In order to investigate...
-
In Exercises 7192, find and simplify the difference quotient f(x +h)-f(x) h -, h = 0
-
Calculate the error (in percent) in evaluating the mass of nitrogen at 10 MPa, 200 K in a 100 L rigid tank while using (a) The IG model. (b) The RG model (LK chart). Use the PC model as the benchmark.
-
Air containing 0.06% carbon dioxide is pumped into a room whose volume is 8000 ft 3 . The air is pumped inat a rate of 2000 ft 3 /min, and the circulated air is then pumped out at the same rate. If...
-
Debit and Credit Effects of Transactions} Mackenzie Corporation was involved in the following transactions during the current year: a. Mackenzie borrowed cash from the local bank on a note payable....
-
A gas mixture containing 85.0 mole% N2 and the balance n-hexane flows through a pipe at a rate of 100.0m 3 fh, the pressure is 2.00 atm absolute and the temperature is 100C. (a) What is the molar...
-
Last year the price for thermometer covers in a pediatricians office was $0.05 each. This year the covers cost $0.06 each. If the office purchased 10,000 thermometer covers this year what is the...
-
In Chapter 4, you worked with data on sales for a line of skiwear that is produced by HeathCo Industries. Barbara Lynch, product manager for the skiwear, has the responsibility of providing forecasts...
-
The lift is holding a 220 lb weight as shown. Calculate the reaction force components and reaction moments at point D? Ignore the radius of the frictionless pulleys. Dimensions: a = 3 ft c = 4 ft e =...
-
Answer the following questions or discuss the following statements. a. It seems that every time a legal challenge is made to an audit, CPAs either lose the case or are embarrassed about the facts...
-
Read the following statements and indicate whether you agree or disagree with each one. Give your reasons for agreement or disagreement. Support your answers with references to applicable cases...
-
Indicate whether you think the following third-party groups would normally represent a (1) primary beneficiary, (2) foreseen party, or (3) foreseeable party. Give reasons for your answers. a. A...
-
Use and Dispose Company was organized to manufacture and sell inexpensive golf clubs that can be used during the golf round and then thrown away at the end of the round. In order to keep the business...
-
Which of the following phrases is not a part of the definition of materiality? a. The magnitude of an omission or misstatement of accounting information that, b. in light of surrounding...
-
Perform a horizontal analysis on the following information providing both the dollar amount and percentage change (Decrease in amount should be indicated by a minus sign. Round your percentages to 1...
-
In each of the following independent cases, document the system using whatever technique(s) your instructor specifies. a. Dreambox Creations (www.dreamboxcreations.com/) in Diamond Bar, California,...
-
Starting from the initial trial solution (x1, x2) = (0, 0), interactively apply the gradient search procedure with = 0.3 to obtain an approximate solution for the following problem, and then apply...
-
Reconsider Prob. 27.9-4. Use the linear regression procedure in the forecasting area of your IOR Tutorial to generate the linear regression line. On the resulting graph that shows this line and the...
-
The life X, in hours, of a certain kind of radio tube has a probability density function given by (a) What is the probability that a tube will survive 250 hours of operation? (b) Find the expected...
-
Explain what is meant by feedforward control and distinguish it from feedback control. R-1
-
Computing Ending Balance of Retained Earnings LO1-1 Sultan Inc. was organized on January 1, 2020. It reported the following for its first two years of operations: Required: Compute the ending balance...
-
What is meant by a variance? What is the point in analysing variances? R-2
Study smarter with the SolutionInn App