Jonathan. Frech’s WebBlog

𝜑 gen­er­a­tor (#15)

Jonathan Frech

This program generates 𝜑, also called the golden ratio. It creates the fibonacci sequence $\big\{1,1,2,3,5,8,13,\dots\big\}$$\big\{1,1,2,3,5,8,13,\dots\big\}$ and divides the newly gen­er­ated num­ber by the last one. In theory this program would gen­er­ate exactly⁠¹ 𝜑.

Fibonacci sequence

The golden ratio (𝜑)

Source code: phi-gen­er­a­tor.py


[1][2020-07-08] Assuming infinite time and memory it would com­pute 𝜑 in its limit.