static double cbrt(double x) { final double y = math.pow(x.abs(), 1 / 3) as double; return x < 0 ? -y : y; }