Modify mybisect to solve until the absolute error is bounded by a given tolerance. Use a...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Modify mybisect to solve until the absolute error is bounded by a given tolerance. Use a while loop to do this. Run your program on the function f(x) = 2r³ + 3x-1 with starting interval [0, 1] and a tolerance of 10-8. How many steps does the program use to achieve this tolerance? (You can count the steps by adding 1 to a counting variable i in the loop of the program.) How big is the final residual f(x)? Turn in your program and a brief summary of the results. Perform 3 iterations of the bisection method on the function f(r) = 2³-4, with starting interval [1,3]. By hand, but use a calculator.) Calculate the errors and percentage errors of zo, 1, 72, and 23. Modify mybisect to solve until the absolute error is bounded by a given tolerance. Use a while loop to do this. Run your program on the function f(x) = 2r³ + 3x-1 with starting interval [0, 1] and a tolerance of 10-8. How many steps does the program use to achieve this tolerance? (You can count the steps by adding 1 to a counting variable i in the loop of the program.) How big is the final residual f(x)? Turn in your program and a brief summary of the results. Perform 3 iterations of the bisection method on the function f(r) = 2³-4, with starting interval [1,3]. By hand, but use a calculator.) Calculate the errors and percentage errors of zo, 1, 72, and 23.
Expert Answer:
Answer rating: 100% (QA)
Answer The code is as follow def mybisectfunc a b tolerance i 0 while b a 2 tolerance mid a b 2 if f... View the full answer
Related Book For
Numerical Methods With Chemical Engineering Applications
ISBN: 9781107135116
1st Edition
Authors: Kevin D. Dorfman, Prodromos Daoutidis
Posted Date:
Students also viewed these programming questions
-
4.5 800-4* Given the exponential function: g(x)- 4.1 Write down the range of g. 4.2 -()* Determine the equation of g" in the form y= 4.3 Is g a function? Justify your answer. 4.4 The point M(a; 2)...
-
Assignment 5: Hash Table implementation andconcordance There are three parts to this assignment. In the first two parts,you will complete the implementation of a hash map and aconcordance program. In...
-
Managing Scope Changes Case Study Scope changes on a project can occur regardless of how well the project is planned or executed. Scope changes can be the result of something that was omitted during...
-
On January 2, 2013, Parker Corporation invests in the stock of Quarry Corporation. Quarry's book value is $4 million and its assets and liabilities are fairly reported. Quarry reports income of $3...
-
Referring to Section 31-3, (a) Why can small nuclei combine to form larger ones, releasing energy in the process? (b) Why does the first reaction in the proton-proton chain limit the rate at which...
-
Measurement equivariance requires the same inference for two equivalent data points: x, measurements expressed in one scale, and y, exactly the same measurements expressed in a different scale....
-
Pluto Corporation issued \(\$ 400,000\) of \(7 \%, 20\) year bonds payable on March 31, 2006. The bonds were issued at 100 and pay interest on March 31 and September 30. Record (a) issuance of the...
-
The accounting records of Earthtone Ceramics included the following balances at the end of the period: In the past, Earthtones warranty expense has been 8% of sales. During 2012, the business paid...
-
Question 1: Case study on Lydo Cinema Chain Lydo Cinema Chain based in Melbourne, owns three cinemas in the suburbs of Camberwell, South Yarra and Ringwood. It has prepared budgets for the coming...
-
Hooyay is a low cost manufacturer of smartphones in Myanmar. They recently listed in 2017 on the Singapore Exchange and did not issue any dividends for 2017 and have no plans to for 2018. They do...
-
Discuss fundamental components of transformational leadership, and provide examples (either imagined or from research). Is transformational leadership possible or even desirable in all organizations...
-
What were the challenges Luxola faced in attracting big brands to its platform? How did Luxola eventually manage to attract big brands? What were the primary contributing factors to Luxola's success?...
-
In the Kinetic theory of gases (you can assume an ideal gas) a typical integral that one needs to evaluate is m 3/2 Af exp(-Bv )u+ dv Af exp(-By )v dv where A=4 and 2nk T 2k T m is the mass of a...
-
Consider the two hypothetical nations of Golikia and Fretonia. Suppose they both produce only two goods, robot vacuum cleaners and catnip toys. Each country faces a trade-off when producing the two...
-
A 0.0242 m diameter coin rolls up a 12.0 inclined plane. The coin starts with an initial angular speed of 49.9 rad/s and rolls in a straight line without slipping. How much vertical height does it...
-
1. What is the discipline designator for an architectural drawing? 2. What designator is used for Survey/Mapping drawings? 3. How many numbers are allowed in a sheet name? 4. How many letters are...
-
If you hold a portfolio made up of the following stocks: wwwww wwwwww. www wwwwwww wwwww VERLA PAMEN M www Stock M Stock N Stock O MARA www. P MARTTYY wwwwww. www MO www von TOMMA Sk WO MHMINIME www....
-
What is the mode?
-
Solve the following ordinary differential equation dy dx =y-2, y(0) = 2
-
Compute the convergence of successive relaxation for the problem in Eq. (2.13.7) as a function of the relaxation parameter . 2x1 + x = 2 x1 - 2x = -2 (2.13.7)
-
What is the value of k at the end of this function? function k = probleml_34 1 2 stop_loop = 2; 3 k = 0; 4 while stop_loop > 1 5 k k+1; 6 stop_loop = 7 end stop_loop 0.25;
-
Which of the following combinations results in a decrease in sample size in a sample for attributes? Risk of Assessing Control Risk Too Low a. Increase b. Decrease c. Increase d. Increase Tolerable...
-
Whatare the nine major steps utilized in a comprehensive approach to information system auditing? Explain why each step is important.
-
Identify four monitoring controls the auditor would expect to find in a welldesigned computer system. Explain the objective of each control identified.
Study smarter with the SolutionInn App