Suppose I have a number a
How can I find it's square root using only +
, -
, /
, *
and rational numbers?
If it is impossible how to prove it?
Suppose I have a number a
How can I find it's square root using only +
, -
, /
, *
and rational numbers?
If it is impossible how to prove it?
The set of rational numbers is closed under the elementary arithmetic operations (except for division by zero), i.e. if you have two rational numbers and take their sum, difference, product, or quotient, then the result is again a rational number (again, except for division by zero). Since $\sqrt{a}$ can fail to be a rational number (say, $\sqrt{2}$), there is no formula for $\sqrt{a}$ involving only elementary arithmetic operations.
closed under the elementary arithmetic operation
. Or share link with prove
– c0rp
Jul 17 '14 at 13:20
If you allow infinite number of operations, then you can use some algorithm.
One easy example is root searching via Newton's method. Here we do the iteration $$x_{n+1} = \frac{a + x_n^2}{2x_n},$$ which eventually converges to $\sqrt{a}$ if $a$ and $x_0$ are positive.
See https://en.wikipedia.org/wiki/Methods_of_computing_square_roots for other methods.
+
, -
, *
, and /
, and can be used to generate a result with as much precision as the OP desires. Also, it is extensible to 3rd, 4th, etc. roots. https://en.wikipedia.org/wiki/Methods_of_computing_square_roots#Decimal_.28base_10.29
– shoover
Jul 17 '14 at 16:36
When you use an infinite ammount of operations, you can use:
$$ \!\ \sqrt{2} = 1 + \cfrac{1}{2 + \cfrac{1}{2 + \cfrac{1}{2 + \cfrac{1}{2 + \ddots}}}}. $$ from here...