Minkowski question-mark function: Difference between revisions
Content deleted Content added
Line 533:
lo, hi = [0, 1], [1, 1]
while (y + /(lo...)) < (y + /(hi...))
mid = lo .+ hi
mid[2] > 0 || break # overflow
bit, bits = fldmod(2bits, 1)
bit > 0 ? (lo
end
y + /(lo...)
|