static double nthRoot(int n, double x) { ret Math.pow(x, 1.0/n); }