Question

One old-time method to estimate the square root of any positive number a is called divide...

One old-time method to estimate the square root of any positive number a is called divide and average: xi+1 = xi + a xi 2 Show that this formula is equivalent to Newton method. Hint: Start by solving f (x) = x 2 − a = 0. Use Matlab code

Homework Answers

Answer #1

MATLAB CODE

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

clc;
clear all;
a=10; % Write number a whose square root is to be evaluated
f=@(x) x^2-a ; % Function
f1=@(x) 2*x; % Derivative of the function
x(1)=1; % Initial guess

for i=1:1:100
x(i+1)=x(i)-(f(x(i))/f1(x(i)));
err=abs(x(i+1)-x(i));
if ( err <0.0001 )
root=x;
break
end
end
SQroot=x(i+1)

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

OUTPUT:

SQroot =

3.1623

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Utilize Newton's Method to estimate the root of 3 sin x - x = 0 for...
Utilize Newton's Method to estimate the root of 3 sin x - x = 0 for x > 0 correct to the sixth decimal places. Show all work below. (Hint: start with x1 = 2)
Using Matlab, find an approximation by the method of false position for the root of function...
Using Matlab, find an approximation by the method of false position for the root of function f(x) = ex −x2 + 3x−2 accurate to within 10−5 (absolute error) on the interval [0,1]. Please answer and show code. Pseudo Code for Method of False Position: Given [a,b] containing a zero of f(x); tolerance = 1.e-7; nmax = 1000; itcount = 0; error = 1; while (itcount <=nmax && error >=tolerance) itcount = itcount + 1; x= a - ((b-a)/(f(b)-f(a)))f(a) error =abs(f(x));...
The positive square root of variance is called: Select one: A. z-score B. mean C. Standard...
The positive square root of variance is called: Select one: A. z-score B. mean C. Standard Deviation D. dispersion QUESTION 12 Not yet answered Marked out of 2.00 Flag question Question text A cell phone company found that 75% of all customers want text messaging on their phones, 80% want photo capability, and 65% want both. What is the probability that a customer will want at least one of them? Select one: A. 0.90 B. 0.81 C. 0.87 D. 0.60...
3) Now you will plan for your retirement. To do this we need to first determine...
3) Now you will plan for your retirement. To do this we need to first determine a couple of values. a. How much will you invest each year? $1,000 a year is what i will invest. State what you will use for P, r, and n to earn credit. ( The typical example of a retirement investment is an I.R.A., an Individual Retirement Account, although other options are available. However, for this example, we will assume that you are investing...
1. The least squares criterion, SSE, SSR, and SST In the United States, tire tread depth...
1. The least squares criterion, SSE, SSR, and SST In the United States, tire tread depth is measured in 32nds of an inch. Car tires typically start out with 10/32 to 11/32 of an inch of tread depth. In most states, a tire is legally worn out when its tread depth reaches 2/32 of an inch. A random sample of four tires provides the following data on mileage and tread depth: Tire Mileage Tread Depth (10,000 miles) (32nds of an...
1. For a pair of sample x- and y-values, what is the difference between the observed...
1. For a pair of sample x- and y-values, what is the difference between the observed value of y and the predicted value of y? a) An outlier b) The explanatory variable c) A residual d) The response variable 2. Which of the following statements is false: a) The correlation coefficient is unitless. b) A correlation coefficient of 0.62 suggests a stronger correlation than a correlation coefficient of -0.82. c) The correlation coefficient, r, is always between -1 and 1....
MATHEMATICS 1. The measure of location which is the most likely to be influenced by extreme...
MATHEMATICS 1. The measure of location which is the most likely to be influenced by extreme values in the data set is the a. range b. median c. mode d. mean 2. If two events are independent, then a. they must be mutually exclusive b. the sum of their probabilities must be equal to one c. their intersection must be zero d. None of these alternatives is correct. any value between 0 to 1 3. Two events, A and B,...
READ THE CASE STUDY AND ANSWER THE FOLLOWING QUESTIONS 2nd CASE: An Unexplained Death A 65-year-old...
READ THE CASE STUDY AND ANSWER THE FOLLOWING QUESTIONS 2nd CASE: An Unexplained Death A 65-year-old man of Scandinavian descent was rushed to the Emergency Room of your local hospital after a family member discovered him unconscious in his home. The woman who dialed “911” told the dispatcher that the man, her brother, was the local librarian of the past 10 years and had no spouse or children. She reported that they had spoken the day before, and he had...
Please read the article and answear about questions. Determining the Value of the Business After you...
Please read the article and answear about questions. Determining the Value of the Business After you have completed a thorough and exacting investigation, you need to analyze all the infor- mation you have gathered. This is the time to consult with your business, financial, and legal advis- ers to arrive at an estimate of the value of the business. Outside advisers are impartial and are more likely to see the bad things about the business than are you. You should...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT