Note that you'll need to use the quadratic equation to get the roots of r(s). To...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Note that you'll need to use the quadratic equation to get the roots of r(s). To simplify things, you can just look at the behavior of the root with the positive radical (i.e. just do the part of the in the formula). Since the a,b, and c parts of the quadratic formula will be functions of the array of K values here, using Matlab's array arithmetic appropriately in the formula will generate an array of corresponding roots. To plot the calculated array of roots on the complex plane, recall that this plane uses the real part of a complex number as the "x" coordinate, and the imaginary part of a complex number as the "y" coordinate. Use the plot function to then get a graphical portrait (a curve) in the complex plane corresponding to the set of complex valued roots which arise for the range of K values specified. This plot (and not a list of the almost 100,000 K values and the corresponding roots!) should be the primary result of running your varyk script. The script should also print out three (and only three) additional pieces of information: the maximal imaginary part seen in the list of roots generated, the value of K which corresponds to this specific root, and the decay rate associated with this root (i.e. the real part of that root). Finally, your script should indicate with a red circle on the graph the datapoint corresponding to this root with maximal imaginary part (we will discuss in class on Monday how to do this last bit). As a reference, when p = -1 and z = -5, the plot should look like the upper half of an ellipse with a peak imaginary part of about 1.9, marked with a red circle (The semiellipse in the plot also has short "legs" along the real axis, like the Greek letter ) As usual, we will test your code by defining different values for p and z in the workspace before we run it (the range for K will not be changed, and must be explicitly included your script as described). To make sure that your script runs properly, test it yourself using the exact technique we will use when grading: clear; close all p=-1; z=-5; varyk which should produce the plot described above, as well as the printout in the command window wmax = 1.9365 Kmax = 2 decayrate Note that you'll need to use the quadratic equation to get the roots of r(s). To simplify things, you can just look at the behavior of the root with the positive radical (i.e. just do the part of the in the formula). Since the a,b, and c parts of the quadratic formula will be functions of the array of K values here, using Matlab's array arithmetic appropriately in the formula will generate an array of corresponding roots. To plot the calculated array of roots on the complex plane, recall that this plane uses the real part of a complex number as the "x" coordinate, and the imaginary part of a complex number as the "y" coordinate. Use the plot function to then get a graphical portrait (a curve) in the complex plane corresponding to the set of complex valued roots which arise for the range of K values specified. This plot (and not a list of the almost 100,000 K values and the corresponding roots!) should be the primary result of running your varyk script. The script should also print out three (and only three) additional pieces of information: the maximal imaginary part seen in the list of roots generated, the value of K which corresponds to this specific root, and the decay rate associated with this root (i.e. the real part of that root). Finally, your script should indicate with a red circle on the graph the datapoint corresponding to this root with maximal imaginary part (we will discuss in class on Monday how to do this last bit). As a reference, when p = -1 and z = -5, the plot should look like the upper half of an ellipse with a peak imaginary part of about 1.9, marked with a red circle (The semiellipse in the plot also has short "legs" along the real axis, like the Greek letter ) As usual, we will test your code by defining different values for p and z in the workspace before we run it (the range for K will not be changed, and must be explicitly included your script as described). To make sure that your script runs properly, test it yourself using the exact technique we will use when grading: clear; close all p=-1; z=-5; varyk which should produce the plot described above, as well as the printout in the command window wmax = 1.9365 Kmax = 2 decayrate
Expert Answer:
Related Book For
Fundamentals of Financial Accounting
ISBN: 978-0078025914
5th edition
Authors: Fred Phillips, Robert Libby, Patricia Libby
Posted Date:
Students also viewed these mechanical engineering questions
-
QUIZ... Let D be a poset and let f : D D be a monotone function. (i) Give the definition of the least pre-fixed point, fix (f), of f. Show that fix (f) is a fixed point of f. [5 marks] (ii) Show that...
-
Let A, B be sets. Define: (a) the Cartesian product (A B) (b) the set of relations R between A and B (c) the identity relation A on the set A [3 marks] Suppose S, T are relations between A and B, and...
-
True or False The slope of the line 2y = 3x + 5 is 3.
-
How does the fact that consumers apparently value fairness affect the pricing decisions that businesses make?
-
Odessa, Inc. manufactures one model of computer desk. The following data are available regarding units shipped and total shipping costs: Required: 1. Prepare a scatter graph of Odessas shipping cost...
-
Explain the reason the Genetic Information Nondiscrimination Act was enacted.
-
The Circulation Manager of the Daily Advocate newspaper commissions a market research study to determine what factors underlie the circulation attrition. Specifically, the survey is designed to...
-
Make a swot analysis for In-N-Out using the case blow as reference. What does this analysis tell you? Founded in 1948, In-N-Out was a small but very successful fast-food chain that was primarily...
-
An analysis of transactions for Foley & Co. was presented in E18. Assume that August is the companys first month of business. In E18, An analysis of the transactions made by Foley & Co., a certified...
-
On November 2 5 , the board of directors of Wilmington Company declared a $ . 6 0 per share dividend. The dividend is payable to shareholders of record on December 8 on December 2 3 . Armstrong has 2...
-
Two medical organizations have recently examined their cost structures. The first group is a radiology practice with a significant investment in diagnostic imaging equipment. The second group is a...
-
Modify the WebGet program to print only the HTTP header of the returned HTML page. The HTTP header is the beginning of the response data. It consists of several lines, such as HTTP/1.1 200 OK Date:...
-
The roots of direct marketing originally lay in the mail-order industry. Modern mail-order businesses will often use direct marketing to drive their business. Explain why direct marketing is still so...
-
Direct marketings strength is its focus on customers. Explain how this market focus influences the development of direct marketing strategy.
-
Implement a Queue class whose add and remove methods are synchronized. Supply one thread, called the producer, which keeps inserting strings into the queue as long as there are fewer than ten...
-
Other accrued liabilitiespayroll taxes At March 31, 2010, the end of the first year of operations at Jaryd, Inc., the firms accountant neglected to accrue payroll taxes of $4,800 that were applicable...
-
What is the order p of a B + -tree? Describe the structure of both internal and leaf nodes of a B + -tree.
-
Complete this case, available online in the Connect library, which involves identifying flaws in a companys balance sheet.
-
Jack Hammer Company completed the following transactions. The annual accounting period ends December 31. Apr. 30 Received $ 600,000 from Commerce Bank after signing a 12-month, 6 percent, promissory...
-
The following transactions took place for Smart Solutions Inc. Required: Prepare the journal entries that Smart Solutions Inc. would record for the above transactions.
-
What is a P-value for a hypothesis test?
-
You plan a survey to estimate the proportion of students on your campus who carry an iPad regularly. How many students should be in the sample if you want (with 95% confidence) a margin of error of...
-
What is a hypothesis test?
Study smarter with the SolutionInn App