Ruud H.G. van Tol on Thu, 30 Dec 2021 16:47:15 +0100 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: fun with Collatz |
On 2021-12-29 04:50, Ruud H.G. van Tol wrote:
On 2021-12-29 03:35, Ruud H.G. van Tol wrote:
\\ 4-dimensional approach ;) [...]Example usage: { my ( v= 9781262575275081247 , w= 1+floor(log(v)/log(10)) \\ digits ); while ( real(v) > 1 , my(vr=real(v), vi=imag(v), p2=frac(vr), c2=floor(if(vi,vi,vr))); p2= if(p2, 1/p2, 0); printf("> %*s 2^%s\n", w, c2, p2); v=im_run1(v); ) }
And the positive/negative "dimension" is still up for grabs! :) -- Ruud