logbeta¶
- mpsci.fun.logbeta(x, y)¶
Natural logarithm of B(x,y).
The beta function is
B(x,y)=Γ(x)Γ(y)Γ(x+y)where Γ(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')