dickinsm at gmail.com
Sat Jan 31 18:25:34 CET 2009
On Jan 31, 4:48 pm, Dan Goodman <dg.gm... at thesamovar.net> wrote:
> I don't think accuracy is too big a problem here actually (at least for
> 13th roots). I just tested it with several hundred thousand random 100
> digit numbers and it never made a mistake.
Well, random numbers is one thing. But how about the following:
>>> n = 12345**13
>>> int(n ** (1./13)) # should be 12345; okay
>>> int((n-1) ** (1./13)) # should be 12344; oops!
More information about the Python-list