To write a Python Program to find the square root of a number by Newton’s Method.
num=int(input(“Enter a number:”))
newtonSquareroot= 0.5*((0.5*num)+num/(0.5*num))
print (newtonSquareroot)
OUTPUT:
Enter a number:2
1.5
To write a Python Program to find the square root of a number by Newton’s Method.
num=int(input(“Enter a number:”))
newtonSquareroot= 0.5*((0.5*num)+num/(0.5*num))
print (newtonSquareroot)
OUTPUT:
Enter a number:2
1.5
Ask a study question in English or Hindi. I will find relevant passages from our notes.
Discussion
Ask a question, share your thoughts or report an error.
Sign in to participate in the discussion.
Join the discussion