Metallic ratios: Difference between revisions

Content added Content deleted
(→‎{{header|C++}}: new entry)
Line 277: Line 277:
metallic<32>(b);
metallic<32>(b);
}
}
std::cout << "Golden ration, where b = 1:" << std::endl;
std::cout << "Golden ratio, where b = 1:" << std::endl;
metallic<256>(1);
metallic<256>(1);


Line 323: Line 323:
Value after 20 iterations: 9.1097722286464436550011371408814
Value after 20 iterations: 9.1097722286464436550011371408814


Golden ration, where b = 1:
Golden ratio, where b = 1:
Value after 615 iterations: 1.6180339887498948482045868343656381177203091798057628621354486227052604628189024497072072041893911374847540880753868917521266338622235369317931800607667263544333890865959395829056383226613199282902678806752087668925017116962070322210432162695486262963136144</pre>
Value after 615 iterations: 1.6180339887498948482045868343656381177203091798057628621354486227052604628189024497072072041893911374847540880753868917521266338622235369317931800607667263544333890865959395829056383226613199282902678806752087668925017116962070322210432162695486262963136144</pre>