The divide and average method, an old-time method for approximating the square root of any positive number
Question:
The “divide and average” method, an old-time method for approximating the square root of any positive number a, can be formulated as
Write a well-structured function to implement this algorithm based on the algorithm outlined in Fig. 4.2.
Transcribed Image Text:
= X x + a/x 2
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 66% (6 reviews)
ANSWER function x ea iter divideAvga es maxit input a positive number to find square root of es stop...View the full answer
Answered By
User l_917591
As a Business Management graduate from Moi University, I had the opportunity to work as a tutor for undergraduate students in the same field. This experience allowed me to apply the theoretical knowledge I had gained in a practical setting, while also honing my teaching and communication skills.
As a tutor, I was responsible for conducting tutorial sessions, grading assignments and exams, and providing feedback and support to my students. I also assisted with the preparation of course materials and collaborated with other tutors and professors to ensure consistency in teaching and assessment.
0.00
0 Reviews
10+ Question Solved
Related Book For
Applied Numerical Methods With MATLAB For Engineers And Scientists
ISBN: 9781259027437
3rd Edition
Authors: Steven C. Chapra
Question Posted:
Students also viewed these Mathematics questions
-
The divide and average? method, an old-time method for approximating the square root of any positive number ? can be formulated as x = x + a/x / 2. (a) Write well-structured pseudosode to implement...
-
The divide and average methods, an old-time method for approximating the square root of any positive number ; can be formulated as x = x + a/x/2. Prove that this is equivalent to the Newton-Raphson...
-
Extend example 1.64 to develop an algorithm for approximating the square root of any positive number. The following exercises establish the links between convergence of sequences and geometry of...
-
This exercise shows that the multiplier may be interpreted as a rate of change in general. Assume that the maximum of (x, y) subject to g(x, y) = c occurs at a point P. Then P depends on the value...
-
In Problem 13.5 on page 470, you used the percentage of alcohol and chlorides to predict wine quality (stored in VinhoVerde). a. Plot the residuals versus i b. Plot the residuals versus X1i. c. Plot...
-
1. Analyze this situation using the HerseyBlanchard model and the VroomJago model. What do these models suggest as the appropriate leadership or decision style? Explain. 2. Evaluate Kevin McCarthys...
-
The axial-flow pump shown in Fig. 12.19 is designed to move \(5000 \mathrm{gal} / \mathrm{min}\) of water over a head rise of \(5 \mathrm{ft}\) of water. Estimate the motor power requirement and the...
-
Roniger Products Company operates three divisions, each with its own manufacturing plant and marketing/sales force. The corporate headquarters and central accounting office are in Roniger, and the...
-
1. The fighters of the Ultimate Fighting Championship (UFC) filed suit against the UFC, alleging that the UFC unlawfully monopolized the output and input markets in mixed martial arts. In particular,...
-
The derivative of f (x) = 1/(1 3x 2 ) is given by Do you expect to have difficulties evaluating this function at x = 0.577? Try it using 3- and 4-digit arithmetic with chopping. 6 (1 - 3x)
-
The following infinite series can be used to approximate e x : (a) Prove that this Maclaurin series expansion is a special case of the Taylor series expansion (Eq. 4.13) with x i = 0 and h = x. (b)...
-
You have 10 identical cartons each holding 10 water bottles. All bottles weigh 10 oz. each, except for one defective carton in which each of the 10 bottles weighs 9 oz. only. A scale is available for...
-
Use the supply and demand graph below to answer the next two questions (1 pt. each - for both questions, assume A is the starting equilibrium point): P H 1 G B A F E S D S D 1 S3 4. If the price of...
-
The networks logical topology is shown in Figure 1. RIP (Routing Information Protocol) is running on all the routers in this company. DV (Distance Vector) algorithm is the routing algorithm for RIP....
-
A car of mass 1000 kg is on an icy driveway inclined at an angle of 33. The acceleration of gravity is 9.8 m/s. 0 If the incline is frictionless, what is the acceleration of the car? Answer in units...
-
normal time (in minutes) and normal cost ($), and crash time (in minutes) and crash cost ($) is given for each task as follows: TASK NORMAL NORMAL CRASH TIME COST TIME 15 150 15 25 250 20 30 300 27...
-
You create an asymmetric butterfly using put options. You purchase 4 options with a strike of 40 and take additional positions in puts with strikes of 60 and 65. What is the maximum payoff you could...
-
The global financial crisis led to increasing legal action against auditors as company managers searched for scapegoats and potential places to recover their losses. The tough economic times also...
-
Rewrite Programming Exercise 7.5 using streams. Display the numbers in increasing order. Data from Programming Exercise 7.5 Write a program that reads in 10 numbers and displays the number of...
-
The upward velocity of a rocket can be computed by the following formula : v = v in m 0 /m 0 qt gt Where = upward velocity, u = the velocity at which fuel is expelled relative to the rocket, m 0 =...
-
In Sec. 8.4, the phase angle between the forced vibration caused by the rough road and the motion of the car is given by tan = 2(c/c c ) ( w /p)/1 ( w /p) 2 As a mechanical engineer, you would...
-
Two fluids at different temperatures enter a mixer and come out at the same temperature. The heat capacity of fluid A is given by :? c p = 3.381 + 1.804 x 10 ?1 T ? 4.300 x 10 ?6? T 2 And the heat...
-
RCB Ltd. is a large entertainment company with an established customer base and a diversified product portfolio. The company has performed very well and has constantly beaten market's earnings...
-
Before automation became more prevalent, overhead was often calculated and allocated as a function of direct labor costs or direct labor hours. Discuss whether you feel this method of allocation is...
-
The Conrad-Demarest Model describes the conditions that the authors feel are necessary for an empire, as well as the factors that can lead to its downfall. 1.) How well do each of these empires fit...
Study smarter with the SolutionInn App