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 ? can be formulated as x = x + a/x / 2.
(a) Write well-structured pseudosode to implement this algorithm as depicted in Figure. ?Use proper indentation so that the structure is clear.
(b) Develop, debug, and document a program to implement this equation in either a high-level language or a macro language of your choice. Structure your code according to Figure.
Transcribed Image Text:
a > 0 tol = 10-5 SquareRoot = 0 %3D r= a/2 y = (r + alx)/2 e = {y - x)/yl e < to! SquareRoot = x LL
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 90% (10 reviews)
a Pseudocode IF a 0 THEN tol 10 5 x a2 DO y x ax2 e y xy x y IF e tol ...View the full answer
Answered By
Aysha Ali
my name is ayesha ali. i have done my matriculation in science topics with a+ . then i got admission in the field of computer science and technology in punjab college, lahore. i have passed my final examination of college with a+ also. after that, i got admission in the biggest university of pakistan which is university of the punjab. i am studying business and information technology in my university. i always stand first in my class. i am very brilliant client. my experts always appreciate my work. my projects are very popular in my university because i always complete my work with extreme devotion. i have a great knowledge about all major science topics. science topics always remain my favorite topics. i am also a home expert. i teach many clients at my home ranging from pre-school level to university level. my clients always show excellent result. i am expert in writing essays, reports, speeches, researches and all type of projects. i also have a vast knowledge about business, marketing, cost accounting and finance. i am also expert in making presentations on powerpoint and microsoft word. if you need any sort of help in any topic, please dont hesitate to consult with me. i will provide you the best work at a very reasonable price. i am quality oriented and i have 5 year experience in the following field.
matriculation in science topics; inter in computer science; bachelors in business and information technology
_embed src=http://www.clocklink.com/clocks/0018-orange.swf?timezone=usa_albany& width=200 height=200 wmode=transparent type=application/x-shockwave-flash_
4.40+
11+ Reviews
14+ Question Solved
Related Book For
Numerical Methods For Engineers
ISBN: 9780071244299
5th Edition
Authors: Steven C. Chapra, Raymond P. Canale
Question Posted:
Students also viewed these Numerical Analysis questions
-
Any transportation problem can be formulated as an assignment problem. To illustrate the idea, determine an assignment problem that could be used to find the optimal solution to the transportation...
-
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...
-
Explain exactly how a paired t-test can be formulated as a one-mean t-test.
-
You use the following data to calculate your stock value. Assume you use the historical geometric average growth rate (rounded to 2 decimals) for initial growth rate for 4 years. Then you believe it...
-
Identify the class width, class midpoints, and class boundaries for the given frequency distribution. Also identify the number of individuals included in the summary. The frequency distributions are...
-
Implement the function from Figure 2.80(b) using (a) An 8:1 multiplexer (b) A 4:1 multiplexer and one inverter (c) A 2:1 multiplexer and two other logic gates B Y 1
-
The budgeted monthly service revenues for Cotsiopoulos Ltd for January to June are presented below. The entitys experience is that 70% of monthly invoicing for services is on a credit basis. All cash...
-
Sims owned property surrounded by the Morans' property. His deed was recorded in 1985, but the property had been in his family for over 50 years. He built a home in 1991. The property was accessed by...
-
Multiply and leave your answer in scientific notation. (2 105) - (4 10) =
-
X Ltd. has 10 lakhs equity shares outstanding at the beginning of the accounting year 2016. The appropriate P/E ratio for the industry in which D Ltd. is 8.35. The earnings per share is Rs. 15 in the...
-
The following algorithm is designed to determine a grade for a course that consists of quizzes, homework, and a final exam: Step 1: Input course number and name. Step 2: Input weighting factors for...
-
An amount of money P is invested in an account where interest is compounded at the end of the period. The future worth F yielded at an interest rate i after n periods may be determined from the...
-
What are the different types of decisions? Explain.
-
Discuss the analysis aspects related to the costs, paybacks, and benefits of: a. A new system being developed and viewed as a capital investment b. A project viewed as a budgeted expense that...
-
Two pounds of flour cost $1.20. How much flour do you get per dollar? Round your answer to the nearest hundredth, if necessary.
-
AE 433 Consider a single stage of a compressor. At the radial location r= 0.75 m, the rotor rotational speed is 2500 rpm, To = 350 K, C1z = C2 = 150 m/s, a = 35, Bz = 10, where subscripts 1and 2...
-
Assume that a banks advertisement offers a loan at 12% APR. Suppose that to buy the car you want with the above loan, you will have to make payments of $250 per month for 4 years with the first...
-
How do cross-border synergies influence international expansion strategies, including market penetration, resource optimization, and knowledge transfer, and what challenges do organizations face in...
-
Multifactor authentication is the de facto standard to authenticate a remote connection. A. True B. False
-
Show that, given a maximum flow in a network with m edges, a minimum cut of N can be computed in O(m) time.
-
When 1,5-dibromopentane reacts with ammonia, among several products isolated is a water- soluble compound A that rapidly gives a precipitate of AgBr with acidic AgNO 3 solution. Compound A is...
-
Use the following differential equations to compute the velocity and position of a soccer ball that is kicked straight up in the air with an initial velocity of 40 m/s: Where y = upward distance (m),...
-
Three linked bungee jumpers are depicted in Fig. P25.26. If the bungee cords are idealized as linear springs (i.e., governed by Hooke's law), the following differential equations based on force...
-
Use (a) Euler's and (b) the fourth-order RK method to solve Over the range t = 0 to 0.4 using a step size of 0.1 with y(0) = 2 and z(0) = 4. dy dt dzyz dt 2
-
Give the worst-case Big O running time of this function and explain in detail how you arrived at this answer. public static int f1(int [] a) { int maxSum = 0, this Sum = 0; for(int j = 0; j maxSum )...
-
1. Explain how to set up user and group account in the active directory, in addition, please explain how to have file and folders sharing. Please give examples. 2. List 3 situations that printers in...
-
8=0 for i 1 to n MAT MAP Give an estimate for the number of operations used in this segment of an algorithm. Use your estimate to find the time complexity. 20 City Tec MA for j1 tonti =s+1 if i = j...
Study smarter with the SolutionInn App