3. Let f(x) = (1+x)/3 - 1. We want to compute y = f(x) for x...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
3. Let f(x) = (1+x)¹/3 - 1. We want to compute y = f(x) for x = 10-4. (a) Compute y in Matlab in the straightforward way. Find the relative error using vpa. Which operation causes the large relative error? (b) Find a better algorithm which approximates y using a Taylor polynomial pn (x). Find the relative error using vpa. What value of n do you need? (c) Find a better algorithm using expm1, log1p. Find the relative error using vpa. Hint: First compute s such that 1 + x = e³. (d) Use expm1, log1p to compute y =√16-x-4 for x = 10-6. Find the relative error using vpa. 3. Let f(x) = (1+x)¹/3 - 1. We want to compute y = f(x) for x = 10-4. (a) Compute y in Matlab in the straightforward way. Find the relative error using vpa. Which operation causes the large relative error? (b) Find a better algorithm which approximates y using a Taylor polynomial pn (x). Find the relative error using vpa. What value of n do you need? (c) Find a better algorithm using expm1, log1p. Find the relative error using vpa. Hint: First compute s such that 1 + x = e³. (d) Use expm1, log1p to compute y =√16-x-4 for x = 10-6. Find the relative error using vpa.
Expert Answer:
Answer rating: 100% (QA)
This question is about numerical computation of the function fx 1 x13 and finding ways to minimize the relative error in the calculations particularly when dealing with small values of x Lets go throu... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1-5. Ivan's grandfather died and left a portfolio of municipal bonds. In 2012, they pay Ivan...
-
A landlord advertised his shop on the internet for rent. John saw the advertisement so he called the landlord to have a chat with the landlord about the shop. John and the landlord agreed to meet at...
-
The graph above is the U.S. market for some imported good. Supply is a flat curve. The U.S. can import the Chinese good for $40 and the Mexican good for $48. Assume the U.S. imposes $10 tariffs on...
-
The equity sections from Hovo Corporation's 2016 and 2017 balance sheets follow. Stockholders' Equity (December 31, 2016) Common stock-$20 par value, 30,000 shares authorized, 17,000 shares issued...
-
Its moving day, and you need to push a 100 kg box up a 20 ramp into the truck. The coefficients of friction for the box on the ramp are s = 0.90 and k = 0.60. Your largest pushing force is 1000 N....
-
Why is it important for a company to have a code of ethics?
-
1. What were the goals of installing CRM software? 2. A Siebel executive commented that the companys CRM system does not fit the needs of all clients. He noted that the clients need to decide if they...
-
Company XYZ is a wholesale club chain store, such as Costco or Sam's Club. You, as a data analyst, are asked to perform the following data clean up, data transformation, and data calculation tasks in...
-
Washington State Fisheries, Incorporated, processes salmon for various distributors. Two departments, processing and packaging, are involved. Data relating to tons of salmon sent to the processing...
-
Servando Services Inc. forecasts earnings of 30 next year. It intends to pay out 64.4% of earnings in dividends. If equity is 30% of total capitalization. What is the breakpoint in the company's MCC,...
-
Define de-individuation. Does de-individuation cause binge drinking? What can or should be done to discourage this type of behaviour? Under what conditions are we more likely to engage in social...
-
How does the source of software code affect the overall security of the system? Justify your position for a general system. What protections can you place within an organization on code that is...
-
1. Which CRM process according to you is most critical? Explain why. 2. Discuss the role of CRM in e-Business and e-commerce. 3. Discuss the critical components and architecture of CRM systems. 4....
-
I choose "Tank Attacks" difficult behavior from the Brinkman book, Dealing with People You Can't Stand. And explained how that difficult behavior derives from one of the BEST personality types. 1....
-
Which element ( s ) of communication do you think you struggle with the most?
-
Cell phones are used for many purposes besides making calls. A study conducted in 2006 found that more than 75% of young adults (defined as 18-25 years old) use their cell phones for taking pictures...
-
(a) Prove that form an orthonormal basis for R3 for the usual dot product. (b) Find the coordinates of v = (1, 1, 1)T relative to this basis. (c) Verify formula (5.5) in this particular case. 48-65...
-
QBR Questions Before Reading. Research has shown (J. Exp. Psychol. Learn. Mem. Cogn., 40, 106114 (2014)) that if you ask a question of the material before reading the material you will have greater...
-
In a diving-chamber experiment, a human subject breathed a mixture of O 2 and He while small areas of his skin were exposed to nitrogen gas. After some time, the exposed areas became blotchy, with...
-
1. What is the NFPA diamond and why is it important? 2. Go to Wikipedia and search ethylene oxide to find the NFPA diamond numbers. 3. Draw the NFPA diamond for the chemicals propylene, isohexane,...
-
A stepped bar, fixed at \(x=0\) and free at \(x=l\), has a cross-sectional area of \(2 A\) for \(0 \leq x
-
Estimate the fundamental frequency for the longitudinal vibration of a uniform bar fixed at \(x=0\) and free at \(x=l\) by assuming the mode shapes as (a) \(U(x)=c_{1}(x / l)\) and (b) \(U(x)=c_{1}(x...
-
Estimate the fundamental frequency of a fixed-fixed string, assuming the mode shape (a) \(W(x)=c_{1} x(l-x)\) and (b) \(W(x)=c_{1} x(l-x)+c_{2} x^{2}(l-x)^{2}\).
Study smarter with the SolutionInn App