Archive for 2007-01-01

Calculate square root with pen and paper only (2)

2007-01-01

This is a continuation of previous article; here I’ll explain the reasoning behind the method. It’s basically related to the expansion of square of polynomial:

LaTeX fragment

Or arranged alternatively:

LaTeX fragment

These terms may look strikingly similar to the ‘division’ operation: in the first round, the last digit a is doubled and shifted left, and we need to find the digit b so that LaTeX fragment is the largest possible number deductible.

Now let’s start. Denote n as the number of which we want to find the square root, as well as representing its square root as a sum of series of digits (the series can be finite or infinite). Expressed in equation form:

LaTeX fragment

with LaTeX fragment = 0-9 for any i. Think about replacing the a, b, c, d… with LaTeX fragment and so on, as well as replacing LaTeX fragment with n:

LaTeX fragment

When the terms in right hand side are reduced from n in succession (i.e. after each iteration), the remainder LaTeX fragment becomes the following infinite series:

LaTeX fragment
LaTeX fragment
……

The remaining task is to show that this series (the remainder) converges to zero, so we can get arbitrary precision with enough iteration. Try to express LaTeX fragment as sum of remaining terms instead:

LaTeX fragment

which can be arbitrarily small when i is large enough. The conclusion is, after enough iteration, the difference between the real square root and the number we get approaches to zero (since the square of this difference, LaTeX fragment, approaches to zero as well).


2007-03-03 update: Edited formula so that it works with LatexRender.

Actually I just want to showcase the wordpress FigureRender plugin (superseded by LatexRender plugin and my ScoreRender plugin) :-)