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
-
(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
-
Find a clock that ticks. Then test to see which ear has the better hearing by covering one ear and finding how far away your open ear can hear the ticking; repeat for the other ear. Notice also how...
-
Find the flux of F over the closed surface. (Let N be the outward unit normal vector of the surface.) F(x, y, z) = 4xyi + zj + yzk S: unit cube bounded by x = 0, x = 1, y = 0, y = 1, z = 0, z = 1
-
In 2004, Jui-Chen Lin, a citizen of China, entered into an agreement with Robert Chiu and Charles Cobb, citizens of the United States, to form an LLC to acquire and operate a fast-food restaurant in...
-
Last year (2013), Richter Condos installed a mechanized elevator for its tenants. The owner of the company, Ron Richter, recently returned from an industry equipment exhibition where he watched a...
-
Imagine that your friend Mary has normal metabolism, but that her brother John has galactosemia. Mary and John's parents, Patricia and Les, are unaffected, although their maternal grandmother, Jean,...
-
Cardinal Company is considering a five-year project that would require a $2,975,000 investment in equipment with a useful life of five years and no salvage value . The company's discount rate is 14%....
-
Given that the total cost function is: TC = 100Q Q^2 + 1 / 3Q^3 where Q = rate of output and TC = total cost 1 Determine the marginal and average cost functions. (4 marks) 2 Calculate the output...
-
Suppose there are $1000 of reserves in the banking system. Assume that banks are required to hold 5% of their deposits as required reserves. Assume further, that banks wish to hold zero excess...
-
Decibee, Inc. has a restricted stock award plan for its employees. It grants 220,000 of its $2.00 par common stock to its selected employees on January 1, 2014 with a vesting period of two years. The...
-
What type of regulation is present in lactose metabolism? What gene regulator is involve in this process? What happens to allow transcription to occur?
-
If the poison arsenate blocks the attachment of phosphate to glyceraldehyde-3-phosphate to produce 3-phosphoglycerate instead of 1,3-bisphosphoglycerate, what would be the impact on the net yield of...
-
Your firm manufactures a generic low-cost product. To be more competitive, you are considering expanding your product line with a new premium version of your product. Below are the details. o Cost of...
-
Write a thorough conclusion about this info. You need to write a 500 to 1,000 word conclusive analysis comparing the base company to its competitors. You should compare and contrast the analysis that...
-
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...
-
In a large office building, there is a woman dead in her locked office, sitting at her desk. Except for the desk, chair, and contents on the desk, the office is empty and the air conditioner is...
-
How many birthdays does the average person have?
-
A murderer is condemned to death. He has to choose between three rooms. The first is full of raging fires, the second is full of assassins with loaded guns, and the third is full of lions that havent...
Study smarter with the SolutionInn App