module MoreMath::Functions

def beta(a, b)

Returns the value of the beta function for +(a, b)+, +a > 0, b > 0'.
def beta(a, b)
  if a > 0 && b > 0
    exp(log_beta(a, b))
  else
    0.0 / 0
  end
end