Nth root of a number

maths
number-theory

#1

What is a efficient algorithm to calculate nth root of some number??

I’m doing using pow(n,(1.0/(double)j); but it gives precision error, is there any other efficient way to calculate this?


#2

You are not supposed to ask this question during the ongoing contest…You better wait for the contest to end.


#3

I will answer this question after 3 o-clock on 12th Dec.


#4

So, according to you I’m o the right track, its the only optimization required?