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: 81% (11 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...
-
For ideal gases undergoing isentropic flows, obtain expressions for P/P*, T/T*, and r/r* as functions of k and Ma.
-
A U.S. importer of Japanese computer components pays for the components in yen. The importer is not concerned about a possible increase in Japanese prices (charged in yen) because of the likely...
-
Suppose Smith Valley is deciding whether to purchase new accounting software. The payback period for the $28,575 software package is three years, and the softwares expected life is eight years. Smith...
-
Student's ID: 1- Please show the records for transactions mentioned below for the first month of 2023. Please remember the company you chose to study during the semester and make all transactions for...
-
Titan Mining Corporation has 15 million shares of common stock outstanding, 1,000,000 shares of 10 percent preferred stock outstanding. Titan Mining also has 220,000 bonds outstanding with par value...
-
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...
-
A contingency table for two independent binomial variable has counts (3, 0 / 0, 3) by row. For H 0 : 1 = 2 and H : 1 > 2 , show that the P-value equals 1/64 for the exact unconditional test and...
-
If you are confronted with analyzing System throughput performance across a chain of Processing Tasks, what are the key performance attributes associated with each task and between tasks that you...
-
How does the auditor manage residual audit risk?
-
What are the major elements of risk assessment?
-
What are the major findings of the COSO report on financial fraud occurring in U.S. publicly held companies?
-
How does an organization go about identifying, measuring, and prioritizing risks? Who is responsible for the assessment of risk in an organization?
-
How do you judge the performance capability of a refrigerator?
-
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
-
Which organization has brought Canada and US to a common format and valuation in reporting the financial statements for the public companies
-
The process of comparing and checking company records against those shown on a bank statement to determine whether the records are in agreement is called what a) bank reconciliation. b) credit audit....
-
6. Cutting bits in a machinery department 7. Food for a factory cafeteria 8. Workers' compensation insurance in a factory 9. Steel scrap for a blast furnace 10. Paper towels for a factory...
Study smarter with the SolutionInn App