docs: @SuppressWarnings("WeakerAccess")
      public static double pow2(double x) {
          final double exponent = Math.floor(x) - 1;
          x = x - exponent;
          double m = 3 - sqrt(7 - 3 * x);
          return Math.pow(2, exponent + 1) * m;
      }