Jump to content

Fibonacci word: Difference between revisions

(→‎{{header|Factor}}: drastically reduced memory usage and run time)
Line 134:
ones = zeros = 0;
 
i = -(count = b_length(~b));
while (i) {
if (b[i] == '0') {
Line 157:
b = "0";
 
o_form("%2d %9d /w12p10d10/ ~\n", 1, b_length(~a), 0r, a);
o_form("%2d %9d /w12p10d10/ ~\n", 2, b_length(~b), 0r, b);
i = 3;
while (i <= 37) {
b_stockbu_copy(a, 0, b);
o_form("%2d %9d /w12p10d10/ ~\n", i, b_length(~a), entropy(a),
__hold(i < 10, ? a,.string : ""));
i += 1;
b_swapb.swap(a, b);
}
 
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.