One way is to solve the equation x^2 - number = 0 with Newton's method.
Start with a guess for the answer (say your number is 20, guess 5 or something - it hardly matters how bad your guess is). Say your guess is G. Then compute :
0.5 * (G + 20/G)
This will give you a new guess. Rinse and repeat. The number 20 needs to be replaced with whatever number you're trying to find the square root of.
Example with √30 :
Take a guess : 6.
Compute 0.5 * (6 + 30/6) = 5.5.
Compute 0.5 * (5.5 + 30/5.5) = 5.47727272728.
Compute 0.5 * (5.47727272728 + 30/5.47727272728) = 5.47722557525.
The true answer is 5.47722557505. You already had four correct decimals after the second step. The third step yields nine correct decimals. It keeps growing like this really fast. This is way better than the longhand method your grandparents learned in school. ^_^
* * * * *
Excellent answer except for one minor (pedantic) point. The true answer is NOT 5.47722557505. The square root of 20 is an irrational and therefore has an infinitely long, non-recurring decimal representation. 5.47722557505 is a rational - tediously long, but even so.
Chat with our AI personalities
345 is not a perfect square and neither is its square root.
Any integer is a perfect square oot (of its square). So 300 is a perfect square root of 90000.
Yes, a perfect square is a number that has an integer square root.
The idea is to take out perfect squares. The largest perfect square in this case is 256, which is the square of 16 (if you have trouble figuring this out, you can take out a smaller perfect square first, and then see if you find additional perfect squares). In any case, the end result should not have a factor that is a perfect square. Using the symbol "root()" for square root: root(512) = root(256 x 2) = root(256) x root(2) = 16 root(2)
Sometimes the square root of a positive number can be irrational, as in the square root of 2 (which is a non-perfect square number), but sometimes it is a rational number, as in the square root of 25 (which is a perfect square number).