bobie said:
Homework Statement
This is not homework
Could you help me understand what happens to this function
\frac{1}{\sqrt{100..1^2+199...9}- 100...1}
when the dots are filled with 0's and 9's , shouldn't the result be 1/.99999...)= 1.?
but if to this input (
http://m.wolframalpha.com/input/?i=1/+((sqrt(100000001^2+199999999)-100000001)&x=9&y=1) ≈ 1.000 000 02,
I add one digit :(
http://m.wolframalpha.com/input/?i=1/+((sqrt(1000000001^2+1999999999)-1000000001)&x=6&y=7),
I get: ≈ 0.00002262 which is 1/44208.7
shouldn't it be 1.000 000 0
02 ?
The result is approximately 10.000 ... (not nearly 1.0!).Wolfram Alpha delivers this if you write something that forces it to interpret 1000000001 in decimal instead of binary. For example, if we write 1000000005-4 instead, we get correct results;
see http://www.wolframalpha.com/input/?i=1%2F%28sqrt%28%281000000005-4%29^2%2B199999999%29-%281000000005-4%29%29
It is useful to re-write the problem in a more "understandable" form. Your quantity is
F = \frac{1}{\sqrt{a^2 + b} - a}, \\<br />
\text{where } a = 1000000001, \; b = 199999999
Since ##b << a^2## we can get a rapidly-converging series expansion that is much more insightful than the original expression. We can write
F = \frac{1}{a} \frac{1}{\sqrt{1+r}-1}, \; r = b/a^2.
For small ##r## we have a rapidly-converging expansion
\sqrt(1+r)-1 = \frac{1}{2}r - \frac{1}{8} r^2 + \frac{1}{16}r^3<br />
- \frac{5}{128} r^4 + \frac{7}{256} r^5 + \cdots
In our case ##r = b/a^2 \doteq 0.1999999986e-9,## so each new term is about a billion times smaller than the preceding term. Just taking a few terms should give very high precision. Plugging that series for the denominator of F and converting that to another series, we finally get
F = 2\frac{a}{b} +\frac{1}{2}\frac{1}{a} -\frac{1}{8} \frac{b}{a^3}<br />
+\frac{1}{16} \frac{b^2}{a^5} -\frac{5}{128} \frac{b^3}{a^7}<br />
+\frac{7}{256} \frac{b^4}{a^9} + \cdots
For the current case the successive terms in the expansion of F are
\text{term 1} \doteq 10.000000060000000300\\<br />
\text{term 2} \doteq 0.49999999950000000050e-9 \\<br />
\text{term 3} \doteq -0.24999999800000000525e-19\\<br />
\text{term 4} \doteq 0.24999999625000002250e-29 \\<br />
\text{term 5} \doteq -0.31249999312500006500e-39 \\<br />
\text{term 6} \doteq 0.43749998731250016406e-49<br />
This shows very clearly that F is very near 10.0. The above input for Wolfram Alpha gives 10.000000060500000299475001500702507498937225001732106.