Write a Python function that implements Newton\'s method to compute and display
ID: 3889611 • Letter: W
Question
Write a Python function that implements Newton's method to compute and display the square root of a positive number x. The algorithm for Newton's method follows: Initialize guess to x/2 While guess is not good enough do update guess to be the average of guess and x/guess When this algorithm completes, guess contains an approximation of the square root.The quality of the approximation depends on how you define "good enough". In this exercise, guess was considered good enough when the absolute value of the difference between guess * guess and x was less than or equal to 10^-12.
Here's the code given below, please help me to finish it.. Thanks!
def find_sqrt(x):
# start your code below
Explanation / Answer
the code ha sfixed
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.