nth-root

Precise nth root

Precise nth root Question: I’m looking for Python Nth root function/algorithm but before you post: NO INTEGER ROOT, HELL! Where could I obtain at least a guide how to program Nth root function that produces precise float/Decimal? Such function that doesn’t return 1 nor 0 for root(125, 1756482845) (1st argument is the number, 2nd is …

Total answers: 6

How to compute the nth root of a very big integer

How to compute the nth root of a very big integer Question: I need a way to compute the nth root of a long integer in Python. I tried pow(m, 1.0/n), but it doesn’t work: OverflowError: long int too large to convert to float Any ideas? By long integer I mean REALLY long integers like: …

Total answers: 12