Golden ratio/Convergence: Difference between revisions

Content added Content deleted
m (julia example)
Line 1,121: Line 1,121:


=={{header|Julia}}==
=={{header|Julia}}==
{{trans|Wren}}
<syntaxhighlight lang="julia">function iterate_phi(limit::T) where T <: Real
<syntaxhighlight lang="julia">function iterate_phi(limit::T) where T <: Real
phi, oldphi, iters = one(limit), one(limit), 0
phi, oldphi, iters = one(limit), one(limit), 0