We consider the quadratic formula and how it relates to the limitations of floating point numbers....
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
We consider the quadratic formula and how it relates to the limitations of floating point numbers. Often we find the roots of the equation az²+bx+c=0 (where we assume a 0). We might divide through by a to obtain the equation r²+ Br+C =0 (1) where B=b/a and C= c/a. We know that the roots of this equation, r₁ and r2, may be found by the formulas R₁ = R₂ = -B+√B²-4C 2 B-√B2-4C 2 (2) (3) For the sake of simplicity in this problem let us assume that B and C are positive numbers. We investigate what happens when B is much larger than C. (a) Suppose in equation (1) we take B = 10% and C=1-B-2. Find the two roots, r₁ and r2, of equation (1) with this choice of B and C by factoring it into the form (z-ri)(z-72). In this way we know the roots of this equation exactly. (b) What are the corresponding roots, call them R₁ and R₂ respectively, obtained by using formulas (2) and (3) in Matlab. (e) How well do R₁ and R₂ approximate ri and r2 using the relative error measure? To how many significant digits do R₁ and R₂ approximate ri and r2 respectively? (d) Consider the approximation R₁. Explain what causes this to be such a poor mumerical approximation to the actual root r₁. (e) What can be done to remedy this, i.e., what different formula or numerical technique might we use to fix this issue? Use this to find a better numerical approximation to r₁. What is this new approximation? To how many significant digits does it approximate ry? (f) Find the roots of equation (1) with B = 10% and C=2 to 10 significant digits. We consider the quadratic formula and how it relates to the limitations of floating point numbers. Often we find the roots of the equation az²+bx+c=0 (where we assume a 0). We might divide through by a to obtain the equation r²+ Br+C =0 (1) where B=b/a and C= c/a. We know that the roots of this equation, r₁ and r2, may be found by the formulas R₁ = R₂ = -B+√B²-4C 2 B-√B2-4C 2 (2) (3) For the sake of simplicity in this problem let us assume that B and C are positive numbers. We investigate what happens when B is much larger than C. (a) Suppose in equation (1) we take B = 10% and C=1-B-2. Find the two roots, r₁ and r2, of equation (1) with this choice of B and C by factoring it into the form (z-ri)(z-72). In this way we know the roots of this equation exactly. (b) What are the corresponding roots, call them R₁ and R₂ respectively, obtained by using formulas (2) and (3) in Matlab. (e) How well do R₁ and R₂ approximate ri and r2 using the relative error measure? To how many significant digits do R₁ and R₂ approximate ri and r2 respectively? (d) Consider the approximation R₁. Explain what causes this to be such a poor mumerical approximation to the actual root r₁. (e) What can be done to remedy this, i.e., what different formula or numerical technique might we use to fix this issue? Use this to find a better numerical approximation to r₁. What is this new approximation? To how many significant digits does it approximate ry? (f) Find the roots of equation (1) with B = 10% and C=2 to 10 significant digits.
Expert Answer:
Answer rating: 100% (QA)
a If B 108 and C 1 B2 then equation 1 is x2 108x 1 1016 0 Factoring this we get x 108x 108 0 Therefo... View the full answer
Related Book For
Fundamentals Of Taxation 2015
ISBN: 9781259293092
8th Edition
Authors: Ana Cruz, Michael Deschamps, Frederick Niswander, Debra Prendergast, Dan Schisler, Jinhee Trone
Posted Date:
Students also viewed these accounting questions
-
Discuss the AMT formula and how it relates to the regular income tax. Include in your discussion factors that cause AMT to be assessed.
-
Discuss the AMT formula and how it relates to the regular income tax. Include in your discussion factors that cause AMT to be assessed.
-
Describe the relevant range and how it relates to cost behavior.
-
Bruceton Farms Equipment Company had goodwill valued at $80 million on its balance sheet at year-end. A review of the goodwill by the company's CFO indicated that the goodwill was impaired and was...
-
Do men and women prefer the same colors of cars? That is, is sex independent of color preference for cars? Suppose a study is undertaken to address this question. A random sample of men and women are...
-
Do wet suits allow a swimmer to swim faster? Researchers measured the speed (in meters per second) of swimmers both with and without a wetsuit. The results of the study are shown in the table....
-
International Publishing Company has the following selected account balances at June 30, 2007. Prepare the stockholders" equity section of International's balance sheet. Inventory $112.000 Common...
-
The office currently has the following full-time equivalents (FTEs): 1.5 surgeons, 2 ASRs, 2RNs, and 1 CA. Suppose that in the following year, the office will have 5,400 plagiocephaly visits, 2,000...
-
Current position analysis The bond indenture for the 10-year, 9% debenture bonds issued January 2, 2015, required working capital of $100,000, a current ratio of 1.5, and a quick ratio of 1.0 at the...
-
A gas containing 50 mol% propylene in propane is to be separated with silica gel having the equilibrium properties shown in Figure. The final products are to be 90 mol% propylene and 75 mol% propane....
-
A car traveling at 120km/h passes through the intersection, headed north, at 9:50. At 9:53, a train passes the intersection at 90km/h, headed east. How fast is the distance between the car and train...
-
Bank of Chinas international reserves management. How would Chinas balance of payments be affected should its central bank decide to sell one billion of dollar-denominated U.S. Treasury bonds and...
-
What is the meaning of a forward premium or discount?
-
As a policy matter, how can the IDEA be designed to ensure that not only middle-and upper-income, well-educated parents take advantage of the requirements relating to special education?
-
What is interest rate arbitrage?
-
Is the availability of attorneys fees and the resultant increase in attorneys involved in the special education process positive or negative in carrying out the goals of the IDEA?
-
Two charges of opposite sign and equal magnitude Q= 2.0 C and held 2.0 m apart as shown in the figure. +Q 1.0m 1.0m 4.0m 4.0m Determine the magnitude and direction of the electric field at point P.
-
On January 1, 2017, McIlroy, Inc., acquired a 60 percent interest in the common stock of Stinson, Inc., for $340,200. Stinson's book value on that date consisted of common stock of $100,000 and...
-
Discuss the at-risk concept and how it applies to the deductibility of investment losses.
-
Wade has a beginning basis in a partnership of $23,000. His share of income and expense from the partnership consists of the following amounts: Ordinary income.$43,000 Guaranteed payment12,000...
-
Walt and Deloris have two dependent children, Bill and Tiffany. Bill is a freshman at State University and Tiffany is working on her graduate degree. The couple paid qualified expenses of $3,900 for...
-
A fire nozzle is supplied through \(300 \mathrm{ft}\) of 3-in.-diameter canvas hose with \(e=0.001 \mathrm{ft}\). Water from a hydrant is supplied at \(50 \mathrm{psig}\) to a booster pump on board...
-
Performance data for a centrifugal fan of 3-ft diameter tested at \(750 \mathrm{rpm}\) are Plot the performance data versus volume flow rate. Calculate static efficiency, and show the curve on the...
-
Water is pumped from a lake at \(z=0\) to a large storage tank located on a bluff above the lake. The pipe is 3-in.-diameter galvanized iron. The inlet section between the lake and the pump includes...
Study smarter with the SolutionInn App