Seed values for estimating square roots.

aarciga
Messages
6
Reaction score
0
This is taken from Wikipedia:

Many of the methods for calculating square roots of a positive real number S require an initial seed value. If the initial value is too far from the actual square root, the calculation will be slowed down. It is therefore useful to have a rough estimate, which may be very inaccurate but easy to calculate. If S ≥ 1, let D be the number of digits to the left of the decimal point. If S < 1, let D be the negative of the number of zeros to the immediate right of the decimal point. Then the rough estimation is this:

If D is odd, D = 2n + 1, then use \sqrt{S}\approx2\cdot10^{n}
If D is even, D = 2n + 2, then use \sqrt{S}\approx6\cdot10^{n}

Two and six are used because

\sqrt{\sqrt{1\cdot10}}=\sqrt[4]{10}\approx2 and \sqrt{\sqrt{10\cdot100}}=\sqrt[4]{1000}\approx6

Im just wondering if anyone could elaborate further as to why 2 and 6 are used.

I see why i works in that it gives you an estimate with the same number of digits as \sqrt{S}

but I am confused as to what 4th root of 1*10 and 10*100 represent. where did those numbers come from?

any clarification is appreciated.
 
Mathematics news on Phys.org
aarciga said:
This is taken from Wikipedia:

Many of the methods for calculating square roots of a positive real number S require an initial seed value. If the initial value is too far from the actual square root, the calculation will be slowed down. It is therefore useful to have a rough estimate, which may be very inaccurate but easy to calculate. If S ≥ 1, let D be the number of digits to the left of the decimal point. If S < 1, let D be the negative of the number of zeros to the immediate right of the decimal point. Then the rough estimation is this:

If D is odd, D = 2n + 1, then use \sqrt{S}\approx2\cdot10^{n}
If D is even, D = 2n + 2, then use \sqrt{S}\approx6\cdot10^{n}

Two and six are used because

\sqrt{\sqrt{1\cdot10}}=\sqrt[4]{10}\approx2 and \sqrt{\sqrt{10\cdot100}}=\sqrt[4]{1000}\approx6

Im just wondering if anyone could elaborate further as to why 2 and 6 are used.

I see why i works in that it gives you an estimate with the same number of digits as \sqrt{S}

but I am confused as to what 4th root of 1*10 and 10*100 represent. where did those numbers come from?

any clarification is appreciated.

I'm just guessing here, but it might come from something like this for D even:

10^{2n+2} = 10^210^{2n}\approx 10^{\frac 3 2}10^{2n}=(10^{\frac 3 4}10^n)^2\approx (6\cdot 10^n)^2

which gives a nice round number to start the iteration.
 
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...
Fermat's Last Theorem has long been one of the most famous mathematical problems, and is now one of the most famous theorems. It simply states that the equation $$ a^n+b^n=c^n $$ has no solutions with positive integers if ##n>2.## It was named after Pierre de Fermat (1607-1665). The problem itself stems from the book Arithmetica by Diophantus of Alexandria. It gained popularity because Fermat noted in his copy "Cubum autem in duos cubos, aut quadratoquadratum in duos quadratoquadratos, et...
I'm interested to know whether the equation $$1 = 2 - \frac{1}{2 - \frac{1}{2 - \cdots}}$$ is true or not. It can be shown easily that if the continued fraction converges, it cannot converge to anything else than 1. It seems that if the continued fraction converges, the convergence is very slow. The apparent slowness of the convergence makes it difficult to estimate the presence of true convergence numerically. At the moment I don't know whether this converges or not.
Back
Top