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.
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It only takes a minute to sign up.
Sign up to join this communityI 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
doc.sagemath.org/html/en/reference/functions/sage/functions/…
$\endgroup$