Golden ratio/Convergence: Difference between revisions

m
→‎{{header|raku}}: s/printf/say
(add raku solution)
m (→‎{{header|raku}}: s/printf/say)
Line 1,261:
 
say "It took {phi.elems} iterations to reach {phi.tail}";
printfsay "The error is {{ ($^a - $^b)/$^b }(phi.tail, (1+sqrt(5))/2)}"</syntaxhighlight>
{{out}}
<pre>It took 15 iterations to reach 1.618033
1,934

edits