Share your repls and programming experiences

← Back to all posts
finding φ
LizFoster (648)

The golden ratio (φ) is the number you get by doing this equation (when given a and b):

a / b = a+b / a

φ is approximately 1.61803398874989484820 (I say approximately because, like π and e, φ is an irrational number, meaning it has no end).

Nothing too cool about this, just wanted to make it because I can (Lol)