Metallic ratios: Difference between revisions
Content added Content deleted
m (→{{header|zkl}}: update functionality) |
m (→{{header|zkl}}: oops) |
||
Line 696: | Line 696: | ||
}</lang> |
}</lang> |
||
<lang zkl>metals:="Platinum Golden Silver Bronze Copper Nickel Aluminum Iron Tin Lead"; |
<lang zkl>metals:="Platinum Golden Silver Bronze Copper Nickel Aluminum Iron Tin Lead"; |
||
metals:="Platinum Golden Silver Bronze Copper Nickel Aluminum Iron Tin Lead"; |
|||
foreach metal in (metals.split(" ")){ n:=__metalWalker.idx; |
foreach metal in (metals.split(" ")){ n:=__metalWalker.idx; |
||
println("\nLucas sequence for %s ratio; where b = %d:".fmt(metal,n)); |
println("\nLucas sequence for %s ratio; where b = %d:".fmt(metal,n)); |
||
Line 750: | Line 749: | ||
{{out}} |
{{out}} |
||
<pre> |
<pre> |
||
Golden ratio ( |
Golden ratio (b==1) to 256 digits: |
||
Approximated value: 1.6180339887498948482045868343656381177203091798057628621354486227052604628189024497072072041893911374847540880753868917521266338622235369317931800607667263544333890865959395829056383226613199282902678806752087668925017116962070322210432162695486262963136144 |
Approximated value: 1.6180339887498948482045868343656381177203091798057628621354486227052604628189024497072072041893911374847540880753868917521266338622235369317931800607667263544333890865959395829056383226613199282902678806752087668925017116962070322210432162695486262963136144 |
||
Reached after ~616 iterations. |
Reached after ~616 iterations. |