logbeta¶
- mpsci.fun.logbeta(x, y)¶
Natural logarithm of \(B(x, y)\).
The beta function is
\[B(x, y) = \frac{\Gamma(x)\Gamma(y)}{\Gamma(x + y)}\]where \(\Gamma(z)\) is the Gamma function.
Examples
>>> from mpmath import mp >>> from mpsci.distributions import logbeta
>>> mp.dps = 25
>>> logbeta(mp.pi, 1.25) mpf('-1.575224779107371741939220563')
>>> mp.log(mp.beta(mp.pi, 1.25)) mpf('-1.575224779107371741939220592')