Print the screen shot of your MATLAB code with output. Printout must be legible. The...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Print the screen shot of your MATLAB code with output. Printout must be legible. • The first line of your code must be % your name. You must show your NAU user name in the "Editor" header. Use NAU computers (possibly the NAU Remote Desktop). iG-1) and Problem. A = [a,] is a Vandermonde matrix of order 5 where aj [1,2,3, 4, 5]". Use the following pseudocode to approximate the solution of A7= Gauss-Seidel Method. Explain steps by commenting on them. %3D by the Algorithm Gauss-Seidel Input: A, 6, = zero (column) vector of order n, tolerance 10-6 Output: the solution of A7 = 6 correct within 10-6 or a message of failure. n = length of , z zero (column) vector of order n, rold = zero (column) vector of order n. for k = 1 to 1000 for i = 1 to n 到= 0.0 for j = 1 to n if j < i x(i] = r[i] + (A[i, j] * *[j]) if j > i x[i] = r[i] + (A[i,j] * xold[j]) rfi] = (bli] – rli)/A[i, i] xold=x if ||A *r - b|| < 10-6 FoundSolution=1 break; if FoundSolution=1 print 'Number of iteration=', k, 'Solution=', r else print The required accuracy is not reached in 1000 iterations' Print the screen shot of your MATLAB code with output. Printout must be legible. • The first line of your code must be % your name. You must show your NAU user name in the "Editor" header. Use NAU computers (possibly the NAU Remote Desktop). iG-1) and Problem. A = [a,] is a Vandermonde matrix of order 5 where aj [1,2,3, 4, 5]". Use the following pseudocode to approximate the solution of A7= Gauss-Seidel Method. Explain steps by commenting on them. %3D by the Algorithm Gauss-Seidel Input: A, 6, = zero (column) vector of order n, tolerance 10-6 Output: the solution of A7 = 6 correct within 10-6 or a message of failure. n = length of , z zero (column) vector of order n, rold = zero (column) vector of order n. for k = 1 to 1000 for i = 1 to n 到= 0.0 for j = 1 to n if j < i x(i] = r[i] + (A[i, j] * *[j]) if j > i x[i] = r[i] + (A[i,j] * xold[j]) rfi] = (bli] – rli)/A[i, i] xold=x if ||A *r - b|| < 10-6 FoundSolution=1 break; if FoundSolution=1 print 'Number of iteration=', k, 'Solution=', r else print The required accuracy is not reached in 1000 iterations'
Expert Answer:
Answer rating: 100% (QA)
Given below is the code for the question Just to see the value of root at each iteration I have not ... View the full answer
Related Book For
Computer Networking A Top-Down Approach
ISBN: 978-0136079675
5th edition
Authors: James F. Kurose, Keith W. Ross
Posted Date:
Students also viewed these accounting questions
-
Print out the header of an e-mail message you have recently received. How many Received: header lines are there? Analyze each of the header lines in the message.
-
Use MATLAB to construct a matrix A by setting A = vander(1 : 6); A = A - diag(sum(A)) (a) By construction, the entries in each row of A should all add up to zero. To check this, set x = ones(6, l)...
-
Use the following payoff matrix for a one- shot game to answer the accompanying questions. a. Determine the Nash equilibrium outcomes that arise if the players make decisions independently,...
-
Derek and Wes take a photograph of a lake at the same angle and the same time of day. Derek's picture comes out with crisp edges around objects in the photo. Wes's picture seems to blur the outlines...
-
On January 1, 2012, Mason Company issues $2 million of 5-year, 7% bonds at 98, with interest payable on June 30 and December 31. Mason uses the straight-line method of amortization. Required a....
-
Sandblasting equipment acquired at a cost of $36,000 has an estimated residual value of $6,000 and an estimated useful life of 10 years. It was placed into service on April 1 of the current fiscal...
-
One method of reducing the maximum temperature in an engine is to run with a rich mixture. A spark-ignition engine with a compression ratio of 10:1, operating on the Otto cycle, runs on a rich...
-
1. How are percentage changes in a currencys value measured? Illustrate your answer numerically by assuming a change in the Thai bahts value from a value of $.022 to $.026. 2. What are the basic...
-
Which incoterms would be applicable to them? please provide reasoning answer. Thank you! 1. You are a Brotherhood of Steel scribe in the Mohave Wasteland. You are trying to buy a piece of valuable...
-
Workers in the petrochemical industry often wear flame-retardant jumpsuits. Unfortunately, the material from which they are made hinders evaporation of perspiration, and consequently heat stress can...
-
The scope of what FedEx does (What kind of services does the company offer? Elaborate on each one of them)
-
In a u - shaped tube with a circular cross - section, glycerol ( Density: rho oil = 8 9 0 kg / m 3 ) and mineral oil ( Density: rho glycerol = 1 2 6 0 kg / m 3 ) are sepa rated by a movable membrane...
-
Calculating Expected Return Based on the following information, calculate the expected return: Probability of this Portfolio Return if State of Economy Recession Normal Boom State Occuring State...
-
Explain why or why not is a convergent geometric series. (7) k=1 -k
-
Given the following long-term historical information for returns for various types of securities, what would be your estimate of the Market Risk Premium? Small company stocks 15% Large company stocks...
-
Perpetuity computation: Compute the present value of a $450 (next year first payment) perpetuity using an 9% discount rate. a. Use the perpetuity formula. b. Using Excel compute the present value...
-
Imagine, your grandma is curious about what Basking in reflected glory (BIRG) and Cutting off reflected failure (CORFing) are. Please use plain English to explain the two concepts to your grandma....
-
How will relating product contribution margin s to the amount of the constrained resource they consume help a company maximize its profits?
-
Suppose you are interested in detecting the number of hosts behind a NAT. You observe that the IP layer stamps an identification number sequentially on each IP packet. The identification number of...
-
For a P2P file-sharing application, do you agree with the statement, "There is no notion of client and server sides of a communication session"? Why or why not?
-
Suppose Host A wants to send a large file to Host B. The path from Host A to Host B has three links, of rates RI =500 kbps, R2 =2 Mbps, and R) = I Mbps. a. Assuming no other traffic in the network,...
-
Perform the indicated operations, if defined, for the following vectors and matrices. \(\left(\mathbf{A B}^{T} ight) \mathbf{v}\) -2 1 -3 1 1 A = 1 -3 2 1 32 B = V= W = 0 0 4 5
-
Perform the indicated operations, if defined, for the following vectors and matrices. \(\left(\mathbf{B}-\mathbf{v} \mathbf{w}^{T} ight) \mathbf{A}\) -2 1 -3 1 1 A = 1 -3 2 1 32 B = V= W = 0 0 4 5
-
Perform the indicated operations, if defined, for the following vectors and matrices. \(\mathbf{A}\left(\mathbf{B A}+\mathbf{v} \mathbf{w}^{T} ight)\) -2 1 -3 1 1 A = 1 -3 2 1 32 B = V= W = 0 0 4 5
Study smarter with the SolutionInn App