nth-root

How to compute the nth root of a very big integer

那年仲夏 提交于 2019-11-26 17:38:49
问题 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: 11968003966030964356885611480383408833172346450467339251 196093144141045683463085291115677488411620264826942334897996389 485046262847265769280883237649461122479734279424416861834396522 819159219215308460065265520143082728303864638821979329804885526