Methods of computing square roots
algorithms for calculating square roots From Wikipedia, the free encyclopedia
Remove ads
The square root of a number is whatever number equals when multiplied by itself (squared). There are many ways to calculate square roots, from estimations to precise calculations.
The mathematical operation of finding a root is the opposite operation of exponentiation, and therefore involves a similar but reverse thought process.
Firstly, one needs to know how precise the result is expected to be. This is because square roots are usually irrational. For example, the square root of 28 is a number with infinite digits, and therefore it is impossible to express it exactly:
Moreover, calculations to calculate square roots usually only give one answer, so it is important to remember that all square roots except for have two answers. Each answer is the negative of the other answer. For example, the square roots of 4 are 2 and -2. You can confirm this by squaring 2 and -2, and seeing that they both result in 4:
Additionally, the square roots of a negative number are two complex numbers. For example, the square root of -4 is 2i and -2i.
Please note that calculating a square root is a special case of the problem of calculating Nth root.
Remove ads
Calculating
Most calculators provide a function for calculation of a square root.
Remove ads
Estimating
If the result does not have to be very precise, the following estimation techniques could be helpful:
You can get more accurate results by doing this technique again on the result. For example:
- is more than 2, so is somewhere between 1 and 1.5. The halfway point of 1 and 1.5 is 1.25, so is approximately 1.25.
- is less than 2, so is somewhere between 1.25 and 1.5. The halfway point of 1.25 and 1.5 is 1.375, so is approximately 1.375.
- is less than 2, so is somewhere between 1.375 and 1.5. The halfway point of 1.375 and 1.5 is 1.4375, so is approximately 1.4375.
- is more than 2, so is somewhere between 1.375 and 1.4375. The halfway point of 1.375 and 1.4375 is 1.40625, so is approximately 1.40625.
With each step, the range of possible values that can be is cut in half.
Babylonian method
The Babylonian method is a much faster way to estimate the square root of a number.
Remove ads
References
Wikiwand - on
Seamless Wikipedia browsing. On steroids.
Remove ads