Consider that 21^2=441,
Also (2+1)^2=(4+4+1).
i.e. The sum of square of the digits of a number is equal to the sum of digits of the number squared.
Now try 22^2=484,
Also (2+2)^2=(4+8+4)
Actually 11,12,13,31,10,20,30 also share the same property.
To find out why those number has this property, we can do some simple algebra:
For 2 digits, suppose the number is X(1) X(2), and the square of this number is S(1)S(2)S(3)
that has the property which The sum of square of the digits of a number is equal to the sum of digits of the number squared,
i.e. (10X(1)+X(2))^2=S(1)*100+S(2)*10+S(3) AND
(X(1)+X(2))^2=S(1)+S(2)+S(3)
Or 99X(1)^2+18X(1)*X(2)=99S(1)+9S(2)
Or 11X(1)^2+2X(1)*X(2)=11S(1)+S(2)
(which X(1),X(2),S(1),S(2),S(3) must be natural number)
Is that given any X(1),X(2);we can always find suitable pairs of S(1),S(2)?
Not necessarily, because All number are within the range of 0-9,
therefore, 108>11S(1)+S(2)>10 or 108>11X(1)^2+2X(1)*X(2)>10
2009年4月20日 星期一
2009年1月22日 星期四
A simple method to approximate square root without calculator
I thought of this when I am in Secondary School which I love to compete with calculator for speed and accuracy. I encounter a problem when to calculate square root of 5, there is no built-in mechanism for my brain to square root. So how?
Then I remember that
(X+1/X)^2=2+X^2+1/X^2
or (X+1/2X)^2=1+X^2+1/X^2
Since 5=2^2+1, therefore we first approximate square root of 5 by 2, to add one in the square of the result, we need 2+1/4.
However, although the square of 2+1/4 is closer to 5 than 2, but there is an excess of square of 1/4 or 1/16 from the real square root. That is an error of 6.25%.
To eliminate this excess value, we remember that (X-1/X)^2=X^2-2+1/X^2
or (X-1/2X)^2=X^2-1+1/X^2
So we can try 2+1/4-(1/16/(2+1/4)/2), which would give us the excess of (1/16/(2+1/4)/2) squared, i.e. an excess of 1/72 squared or 1/5104. We are thus now making error of only 0.02% from the true value of square root of 5. That is good enough for most purpose.
The general methodology is like this: Suppose we need to find the square root of X^2+q.
Then we first approximate it by nearest square root, i.e. X, and remember we need to make the difference of q.
Thus the next step is adding q/2X to X for suppling this difference, giving an excess of q^2/4X^2.
Yet another step is treating the answer X+q/2X as X in the first step and difference as the q then we try to eliminate the difference by X-q/2X.
We could repeat the process however many times until the answer reach the accuracy we needed.
Then I remember that
(X+1/X)^2=2+X^2+1/X^2
or (X+1/2X)^2=1+X^2+1/X^2
Since 5=2^2+1, therefore we first approximate square root of 5 by 2, to add one in the square of the result, we need 2+1/4.
However, although the square of 2+1/4 is closer to 5 than 2, but there is an excess of square of 1/4 or 1/16 from the real square root. That is an error of 6.25%.
To eliminate this excess value, we remember that (X-1/X)^2=X^2-2+1/X^2
or (X-1/2X)^2=X^2-1+1/X^2
So we can try 2+1/4-(1/16/(2+1/4)/2), which would give us the excess of (1/16/(2+1/4)/2) squared, i.e. an excess of 1/72 squared or 1/5104. We are thus now making error of only 0.02% from the true value of square root of 5. That is good enough for most purpose.
The general methodology is like this: Suppose we need to find the square root of X^2+q.
Then we first approximate it by nearest square root, i.e. X, and remember we need to make the difference of q.
Thus the next step is adding q/2X to X for suppling this difference, giving an excess of q^2/4X^2.
Yet another step is treating the answer X+q/2X as X in the first step and difference as the q then we try to eliminate the difference by X-q/2X.
We could repeat the process however many times until the answer reach the accuracy we needed.
標籤:
代數,
平方根,
漸近法,
數學,
algerba,
Mathematics,
method of approximation,
suqare root
訂閱:
文章 (Atom)