Coding challenge

Write some code to find numbers $a$ and $b$ that are in the "golden ratio" of one another, or have the property that $\frac{a+b}{a}=\frac{a}{b}$. What ratio to $a$ and $b$ have in this case (ans: 1.618...).

Type your code here:


Lua reference

See your results here: