Method: MoreMath::Functions.log_beta

Defined in:
lib/more_math/functions.rb

.log_beta(a, b) ⇒ Object

Returns the natural logarithm of the beta function value for (a, b).



47
48
49
50
51
# File 'lib/more_math/functions.rb', line 47

def log_beta(a, b)
  log_gamma(a) + log_gamma(b) - log_gamma(a + b)
rescue Errno::ERANGE, Errno::EDOM
  0 / 0.0
end