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.
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.
If you are looking for a numerical approximation, there are several routes open to you. Here are two.
a.n(digits=100), like here383. instead of 383 and then do the rootMore advanced options include setting a "real field" with a certain accuracy like R=RealField(1000) and using that ...
nth_root function and method, and real_nth_root https://doc.sagemath.org/html/en/reference/functions/sage/functions/other.html#sage.functions.other.Function_real_nth_root
– PM 2Ring
Dec 17 '22 at 09:02