nth root of huge integer number in sage

4.8k Views Asked by At

I have been reading for the last hour about different ways to take an nth root in sage. I am having trouble finding a way to do so for very large numbers.

Any help would be much appreciated. I have tried ^(1/n) and pow and a number of others.

1

There are 1 best solutions below

1
On

If you are looking for a numerical approximation, there are several routes open to you. Here are two.

  • You can approximate after taking it with e.g. a.n(digits=100), like here
  • You can use a decimal point like 383. instead of 383 and then do the root

More advanced options include setting a "real field" with a certain accuracy like R=RealField(1000) and using that ...