v1
- by heinoustugboat 7/23/202000
Setup HTML - click to add setup HTML
disable setup JavaScript
Setup JavaScript
function nthRoot(value, k = 2) {
  let o = 0;
  let x = value;
  let limit = 100000;

  while (x ** k !== k && x !== o && --limit) {
    o = x;
    x = ((k - 1) * x + value / x ** (k - 1)) / k;
  }
  console.log(100000 - limit);
  return x;
}


function nthRootBig(value, k = 2n) {
  let o = 0n;
  let x = value;
  let limit = 1000000;

  while (x ** k !== k && x !== o && --limit) {
    o = x;
    x = ((k - 1n) * x + value / x ** (k - 1n)) / k;
  }
  console.log(10000000 - limit);
  return x;
}
delete caserun single casemove downdrag and drop case


ready



let n=1;
for (let i = 0; i < 100; ++i) {
	n = i ** 1.15;
}
delete caserun single casemove updrag and drop case


ready



let n=1;
for (let i = 0; i < 100; ++i) {
	n = nthRoot(i ** 115, 100);
}
Test Case - click to add another test case
Teardown JS - click to add teardown JavaScript
Output (DOM) - click to monitor output (DOM) while test is running
RUN