Finding a closed form expression given decimal approximation

In summary: So, I guess they use numerical methods as well.In summary, the conversation discusses a method for finding a relatively simple expression for a given decimal approximation. The method involves setting a variable t equal to a nested radical expression and using Ramanujan's method to solve for t. However, there is some discrepancy in the calculated values and it is suggested that numerical methods may be used to find a solution.
  • #1
fedaykin
138
3
Good evening. Is there a way to take a decimal approximation and see if there is a relatively simple expression?
I'm guessing there might be software for this, but I'm not sure I'm even asking the appropriate question.
If it matters, the number I'm after is [tex]\sqrt{1+\sqrt{2+\sqrt{4+\sqrt{8+\sqrt{16+ ... }}}}}[/tex] . This is the powers of 2 under a nested radical.
 
Mathematics news on Phys.org
  • #2
fedaykin said:
Good evening. Is there a way to take a decimal approximation and see if there is a relatively simple expression?
I'm guessing there might be software for this, but I'm not sure I'm even asking the appropriate question.
If it matters, the number I'm after is [tex]\sqrt{1+\sqrt{2+\sqrt{4+\sqrt{8+\sqrt{16+ \cdots}}}}}[/tex] . This is the powers of 2 under a nested radical.

You can apply Ramanujan's method to this. Set
$$ t =\sqrt{1+\sqrt{2+\sqrt{2^2+\sqrt{2^3+\sqrt{2^4+ \cdots }}}}}.$$
Then
$$ t^2 = 1 + \sqrt{2} t,$$
and we must take the positive root.
 
  • Like
Likes fedaykin, WWGD and HallsofIvy
  • #3
If I calculate $$\sqrt{2} t$$ then the powers of 2 under the roots increase exponentially:
$$ \sqrt{2+\sqrt{2^3+\sqrt{2^6+\sqrt{2^{11}+\sqrt{2^{20}+ \cdots }}}}}.$$
Am I mistaken somewhere or is $$ t^2 = 1 + \sqrt{2} t$$ meant as an approximation?
 
  • Like
Likes fedaykin
  • #4
fresh_42 said:
If I calculate $$\sqrt{2} t$$ then the powers of 2 under the roots increase exponentially:
$$ \sqrt{2+\sqrt{2^3+\sqrt{2^6+\sqrt{2^{11}+\sqrt{2^{20}+ \cdots }}}}}.$$
Am I mistaken somewhere or is $$ t^2 = 1 + \sqrt{2} t$$ meant as an approximation?

The first few terms in the sequence for ##t## are {1., 1.55377, 1.73205, 1.78812}, so this certainly looks convergent. You might try to prove a bound on convergence for the expression where we replace 2 by ##n##.
 
  • Like
Likes fedaykin
  • #5
Thank you guys! It's a lead!
 
  • #6
fzero said:
You can apply Ramanujan's method to this. Set
$$ t =\sqrt{1+\sqrt{2+\sqrt{2^2+\sqrt{2^3+\sqrt{2^4+ \cdots }}}}}.$$
Then
$$ t^2 = 1 + \sqrt{2} t,$$
and we must take the positive root.
And then it is simple to solve: [itex]t^{2}=1 + \sqrt{2}t [/itex], rearrange: [itex] t^{2}-\sqrt{2}t-1=0[/itex] and solve: [itex]t=\frac{\sqrt{2}\pm\sqrt{2+4}}{2}=\frac{\sqrt{2}}{2}(1\pm \sqrt{3}) [/itex]. Obviously, we must use the positive sign and get [itex] t=\frac{\sqrt{2}}{2}(1+ \sqrt{3})[/itex] (the numerical value is 1.931852...).
 
  • Like
Likes fedaykin
  • #7
I've made a nice little excel file to help study these. Interestingly, if you use 4 as a base, it seems to converge to exactly 2. It's the only number so far that I've seen do this. I've tried powers of 2 up to 2^16, and those appear non-rational so far.

If anyone wishes to use it, you'll have to create a module (or some other means) of implementing the following in VBA:
Option Explicit

Public Function goatVal(theInput As String) As Double

goatVal = Evaluate(theInput)

End Function


I can't attach it as macro enabled (wisely), so unfortunately, you'll have to add it manually. The previous code allows you to use the Evaluate function as a standard cell function. That is, it Excel will try to evaluate the contents of a cell as if they were a formula if you put " =goatVal(cellReference) " into them. Be careful, this can take up a decent amount of processor time. It gives me a !value error if the string is getting too large, but seems reasonable otherwise.
 

Attachments

  • Nested Radicals Calc.xlsx
    11.3 KB · Views: 330
  • #8
The basic idea is this: set [itex]t= \sqrt{1+ \sqrt{2+ \sqrt{2^2+ \sqrt{2^3+ \cdot\cdot\cdot}}}}[/itex]. Squaring both sides, [itex]t^2= 1+ \sqrt{2+ \sqrt{2^2+ \sqrt{2^3+ \cdot\cdot\cdot}}}[/itex]. So [itex]t^2- 1= \sqrt{2+ \sqrt{2^2+ \sqrt{2^3+ \cdot\cdot\cdot}}}[/itex] and, factoring a [itex]\sqrt{2}[/itex] out of the right, [itex]t^2- 1= \sqrt{2}\sqrt{1+ \sqrt{2+ \sqrt{2^2+ \cdot\cdot\cdot}}}= \sqrt{2}t[/itex].
 
  • #9
HallsofIvy said:
The basic idea is this: set [itex]t= \sqrt{1+ \sqrt{2+ \sqrt{2^2+ \sqrt{2^3+ \cdot\cdot\cdot}}}}[/itex]. Squaring both sides, [itex]t^2= 1+ \sqrt{2+ \sqrt{2^2+ \sqrt{2^3+ \cdot\cdot\cdot}}}[/itex]. So [itex]t^2- 1= \sqrt{2+ \sqrt{2^2+ \sqrt{2^3+ \cdot\cdot\cdot}}}[/itex] and, factoring a [itex]\sqrt{2}[/itex] out of the right, [itex]t^2- 1= \sqrt{2}\sqrt{1+ \sqrt{2+ \sqrt{2^2+ \cdot\cdot\cdot}}}= \sqrt{2}t[/itex].
I can see this delivers an upper bound and thus proves convergence. What I cannot see, as mentioned in #3, is equality by factoring out ##\sqrt 2 ##. Since all of you insist on the equality I assume I was mistaken. Can somebody enlighten me why ##\sqrt 2 t > t^2 - 1## is wrong?
 
  • #10
First, you want to calculate a specific numbers. So, as I and others said, we set t equal that number. How in the world did you convert that equation to an inequality?
 
  • #11
$$\sqrt{2} t = \sqrt{2} \sqrt{1+\sqrt{2+\sqrt{2^2+\sqrt{2^{3}+\sqrt{2^{4}+ \cdots }}}}} = \sqrt{2 \cdot 1 + 2 \cdot \sqrt{2+\sqrt{2^{2}+\sqrt{2^{3}+ \cdots }}}} = \sqrt{2 + \sqrt {4 \cdot 2+ 4 \cdot \sqrt{2^{2}+\sqrt{2^{3}+ \cdots }}}} = \sqrt{2 + \sqrt{2^3 +\sqrt{16 \cdot 2^2 +16 \cdot \sqrt{2^{3}+ \cdots }}}} = \cdots = \sqrt{2+\sqrt{2^3+\sqrt{2^6+\sqrt{2^{11}+\sqrt{2^{20}+ \cdots }}}}}.$$
 
  • #12
One thing I don't quite understand yet:

Evaluating the approximation to these (with several bases) leads to a value that appears to always be less than using Ramanujan's method.
For example: let n = 4 (where n is the base of powers under the radical) and you get:

[tex] t^2-2t-1=0 [/tex]
[tex] t=1+\sqrt{2} \approx {2.414} [/tex]
[tex] t= 1 - \sqrt{2} \approx {-0.414} [/tex]

But, if you were to guess at the value from calculation:

[tex]\sqrt{1+\sqrt{4+\sqrt{16+\sqrt{64+\sqrt{256}}}}} \approx{1.999} [/tex]

By the way, the calculated approximation does not appear to be related to the two solutions from Ramanujan's method. For the number 4, it's just a coincidence that it is the sum. Perhaps these have a very slow rate of convergence and have a 'false positive' convergence to a different value?

To everyone that's been so helpful in this thread, you've brought me a lot of joy in understanding these. I first saw the representation of the golden ratio as the powers of one under the radical, and I've been working on these on and off since college. Thank you so much!
 
  • #13
I also think something is wrong here. For your first expression, the calculated value is ##t=\frac{\sqrt{2}}{2}(1+ \sqrt{3})=1.93...##, but your own Excel calculation gives 1.783...
I also did a calculation in Excel, and get the same results: 1.783... for the first expression, 2 for the second expression (the one with 4).

I tried Ramajunan's method on the first expression, factoring out the ##\sqrt{2}##, but didn't get the result shown above.

EDIT: here they also find 1.783... as solution, but no closed-form solution.
 
Last edited:
  • Like
Likes fedaykin

1. How do I find the closed form expression for a given decimal approximation?

To find the closed form expression for a given decimal approximation, you will need to use a combination of algebraic equations and mathematical operations. Start by writing out the decimal approximation as a fraction, and then solve for the unknown variable using algebraic equations. You may need to use logarithms, exponents, or other mathematical functions to find the closed form expression.

2. Is it always possible to find a closed form expression for a given decimal approximation?

No, it is not always possible to find a closed form expression for a given decimal approximation. Some decimal approximations may be irrational numbers, meaning they cannot be expressed as a ratio of two integers. In these cases, there is no closed form expression that accurately represents the decimal approximation.

3. Can I use a calculator to find the closed form expression for a given decimal approximation?

While calculators can be helpful in solving mathematical equations, they may not always be accurate in finding the closed form expression for a given decimal approximation. It is best to use algebraic methods and mathematical operations to find the closed form expression, as this will provide a more precise answer.

4. What are some common techniques used to find closed form expressions for decimal approximations?

Some common techniques used to find closed form expressions for decimal approximations include using algebraic equations, using mathematical operations such as logarithms and exponents, and using series and sequences. It is important to have a strong understanding of algebra and mathematical concepts in order to accurately find closed form expressions.

5. How can finding a closed form expression for a decimal approximation be useful in scientific research?

Finding a closed form expression for a decimal approximation can be useful in scientific research because it allows for a more precise and exact representation of a value. This can be particularly important in fields such as physics and engineering, where small variations in values can have significant impacts. Additionally, having a closed form expression can make it easier to manipulate and analyze the data in further calculations and experiments.

Similar threads

Replies
4
Views
613
  • General Math
Replies
3
Views
1K
Replies
1
Views
991
  • General Math
Replies
1
Views
1K
Replies
17
Views
3K
Replies
4
Views
924
Replies
1
Views
739
Replies
2
Views
1K
  • General Math
Replies
1
Views
2K
Replies
4
Views
2K
Back
Top