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...
-
YUX Corporation sells a single product for $50. Its management estimates the following revenues and costs for the year 2012: Instructions (a) Assuming fixed costs and net sales are spread evenly...
-
An object moves with constant velocity. What can you say about the work done on a system that includes only this object? \(\cdot\)\(\cdot\)
-
Hector P. Wastrel, a careless employee, left some combustible materials near an open flame in Salter Companys plant. The resulting explosion and fire destroyed the entire plant and administrative...
-
1. An unpolarized light beam is incident on the polarizes of a polarization experiment and the intensity of light beam emerging from the analyzer is measured as 100 Lumens. Now, if the analyzer is...
-
You may refer to the opening story of Tony and Suzie and their decision to start Great Adventures in AP 11. More of their story and the first set of transactions for the company in July are presented...
-
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...
-
Igneous rocks are classified on the basis of texture (grain size) and composition (mineralogy). A general indicator of igneous rock composition is the color. Name the following igneous rocks by...
-
A conversion of a face value $1 million convertible bond for $1 million of common stock would most likely be: A. reported as a $1 million investing cash inflow and outflow. B. reported as a $1...
-
White Flag, a womens clothing manufacturer, reported salaries expense of $20 million. The beginning balance of salaries payable was $3 million, and the ending balance of salaries payable was $1...
-
Green Glory Corp., a garden supply wholesaler, reported cost of goods sold for the year of $80 million. Total assets increased by $55 million, including an increase of $5 million in inventory. Total...
-
Purple Fleur S.A., a retailer of floral products, reported cost of goods sold for the year of $75 million. Total assets increased by $55 million, but inventory declined by $6 million. Total...
-
According to the Conceptual Framework for Financial Reporting (2010) , which of the following is not an enhancing qualitative characteristic of information in financial statements? A. Accuracy. B....
-
Prepare a Statement of Activities for the Walland County School District for the year ended December 31, 20X5, given the following information. Assume that the classifications provided for expenses...
-
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
-
What year was Linux created? What type of User Face is Linux ? What are the features in Linux? What is the historical significance of Linux? What is the current version of Linux?
-
Use the information below to answer the questions that follow. U.S. $ EQUIVALENT U.K. pound () 1.5939 Canada dollar (Can$) 1.0091 a. Which would you rather have, $100 or 100? CURRENCY PER U.S. $...
-
What are the molecular mechanisms underlying cellular respiration, and how do they facilitate the conversion of chemical energy stored in organic molecules into adenosine triphosphate (ATP) for...
Study smarter with the SolutionInn App