Share your repls and programming experiences

← Back to all posts
How to calculate the golden ratio!

The Golden Ratio appears frequently in nature, like in flowers. Ancient Civilizations knew this and built structures like the Parthenon, which makes the buildings and flowers appear pleasing to the eye. The method I am using here is :
If a sequence begins a, b, a + b, a + 2b, 2a + 3b.....
I can take any term and divide it by the term before that, and the value will converge to the golden ratio.

For people who like math but ran out of things to calculate.
Convergent (not exact but very close)
Alternatively, you may use this formula:
(1+sqrt(5)) / 2
which is what I and @thenoob1337 used to calculate the golden ratio


you did not give much context on what the golden ratio is and why it is useful


@MikeW3 now i have :)