Den tisdag 30 juni 2015 kl. 01:11:51 UTC+2 skrev Ian: > On Mon, Jun 29, 2015 at 4:56 PM, Ian Kelly <ian.g.ke...@gmail.com> wrote: > > On Mon, Jun 29, 2015 at 4:39 PM, <jonas.thornv...@gmail.com> wrote: > >> http://jt.node365.se/baseconversion8.html > > > > Back of the envelope mental calculation, that appears to be quadratic, > > not linear. Doubling the length of the input results in an approximate > > quadrupling of the time taken to produce the output. > > > > That noted, this is off-topic for this list, which is for discussion > > about Python. Please take this to somewhere else like > > comp.lang.javascript instead. > > By the way, I think you have a bug. I did my time testing by > concatenating the default input number to itself several times. At > 5184 decimal digits, which was the last case I tried, the 58th output > digit was 1111111, after which point the remaining 672 output digits > are all 12665464, which seemed rather improbable.
It isn't i used the power to check with wolfram, but there is a plus 1 bug as ben noticed. But not in this slower version. http://jt.node365.se/baseconversion5.html -- https://mail.python.org/mailman/listinfo/python-list