Seed values for estimating square roots.

  • Context: Undergrad 
  • Thread starter Thread starter aarciga
  • Start date Start date
  • Tags Tags
    Roots Seed Square
Click For Summary
SUMMARY

The discussion focuses on the methods for estimating square roots of positive real numbers, specifically using initial seed values based on the number of digits in the number. For numbers S ≥ 1, the seed value is calculated using the formula \(\sqrt{S} \approx 2 \cdot 10^{n}\) if D is odd, and \(\sqrt{S} \approx 6 \cdot 10^{n}\) if D is even, where D represents the number of digits to the left of the decimal point. The values 2 and 6 are derived from the fourth roots of 10 and 1000, respectively, providing a rough estimate that aligns with the number of digits in the square root.

PREREQUISITES
  • Understanding of square root calculations
  • Familiarity with scientific notation
  • Basic knowledge of logarithmic functions
  • Concept of digit counting in real numbers
NEXT STEPS
  • Research the derivation of the fourth roots of numbers, specifically \(\sqrt[4]{10}\) and \(\sqrt[4]{1000}\)
  • Explore methods for improving seed values in numerical algorithms
  • Learn about iterative methods for calculating square roots, such as the Newton-Raphson method
  • Investigate the impact of seed value accuracy on convergence speed in numerical calculations
USEFUL FOR

Mathematicians, computer scientists, and anyone involved in numerical analysis or algorithm development will benefit from this discussion, particularly those interested in optimizing square root calculations.

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.
 

Similar threads

  • · Replies 15 ·
Replies
15
Views
2K
  • · Replies 23 ·
Replies
23
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
12
Views
4K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 1 ·
Replies
1
Views
6K
  • · Replies 16 ·
Replies
16
Views
1K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K