Anonymous user
Metallic ratios: Difference between revisions
m
→{{header|zkl}}: tweak
(Added Go) |
m (→{{header|zkl}}: tweak) |
||
Line 415:
}
fcn metallicRatio(lucasSeq){
const bige="1e33",E=10;
a,b := lucasSeq.next(), lucasSeq.next();
do(1000){ // limit iterations
c:=lucasSeq.next();
m1,m2 := BI(bige).mul(b)
a,b = b,c;
if((m1 - m2).abs()
}
}</lang>
|