code: public static double Log(double a, double b) {
          return Gamma.Log(a) + Gamma.Log(b) - Gamma.Log(a + b);
      }
docs: Natural logarithm of the Beta function.
  
  @param a Value.
  @param b Value.
  @return Result.