module MoreMath::Functions

def log_beta(a, b)

Returns the natural logarithm of the beta function value for +(a, b)+.
def log_beta(a, b)
  log_gamma(a) + log_gamma(b) - log_gamma(a + b)
rescue Errno::ERANGE, Errno::EDOM
  0 / 0.0
end