How do I get the square root of a number (3 in this case) that is accurate to a specified number of digits to the right of the decimal point?
Asked
Active
Viewed 186 times
0
-
2http://en.wikipedia.org/wiki/Methods_of_computing_square_roots – Billy Jun 26 '13 at 00:20
-
For Newton's method, see this answer – Ross Millikan Jun 26 '13 at 01:11
2 Answers
1
Since Ross added an answer, I felt free to add my own. In the antedeluvian days when I was a schoolboy, this was part of the high school curriculum. One particular technique (out of many in the Wikipedia link Billy provided) is explained pretty well here It's similar in shape to the long division algorithm that I still hope is taught today. Using it you can just crank out as many digits of the square root as necessary. BTW $\sqrt{3}\approx1.732050807568877$.
Rick Decker
- 8,787
0
Just so we have an answer see Wikipedia and for Newton's method see this answer
Ross Millikan
- 383,099