Do you understand how to use recursive definitions?
If N is the number of which we want the square root then here what we will do.
First define a first number R<SUB>1</SUB>=1.
Then for every k bigger than 1, define R<SUB>k</SUB>=[R<SUB>k-1</SUB>+(N/ R<SUB>k−1</SUB>)]/2.
When you calculate say 10 of these, you get close to the square root or N.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.