In order to calculate x = sqrt(1 + x) for a given number x, 40 times, I tried this:
f [x_] := Sqrt[1 + x]
N[Map[f, x = Range[40]]]
However, I got to apply the function f to every number from 1 to 40, not continuously.
The process should be Sqrt[Sqrt[Sqrt...[1+x]]]
In Matlab, I could do
x = 3
for k = 1:41
x = sqrt(1 + x)
end
Data in Mathematica is inmutable by default, how can I do this?

Mathematicaby calculating the Golden Ratio. It's good to know that there's even aGoldenRatiobuilt-in the Mathematica. Thank you! – Nick Jan 30 '15 at 06:05