Task

Implement the algorithm to compute the principal   nth   root   





A

n





{\displaystyle {\sqrt[{n}]{A}}}

   of a positive real number   A,   as explained at the   Wikipedia page.



func nthRoot(x,a){
	send x^(1/a);
}{a=2};
log(nthRoot(8,3));