Question: write the code in matlab Newton's method for evaluating x is as follows: r(k)=21(r(k1)+r(k1)x) Where r(k) is the new calculated value (rNew) square root of

write the code in matlab
write the code in matlab Newton's method for evaluating x is as

Newton's method for evaluating x is as follows: r(k)=21(r(k1)+r(k1)x) Where r(k) is the new calculated value (rNew) square root of x, and r(k1) is the previously calculated value (rold) of the square root of x. Create a script that will ask the user for the value of a positive integer (x). The script shall then use a while loop to determine the square root of (x) using the Newton's method formula above. You may not use any buitt-in functions to calculate the square rootl Your output statement shall read: The square root of X is X:XX to two decimal places. Hints: You must have something to use as a comparison for the while loop to run. Meaning how close to the actual solution do you need to be. For this question your answer must be within 0.01 of the actual solution. Let r New =1 and rold =x1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!