Logarithm of beta function
L = betaln(Z,W)
L = betaln(Z,W) computes
the natural logarithm of the
for corresponding elements of arrays
beta(Z,W). Since the beta function
can range over very large or very small values, its logarithm is sometimes
W must be real and
nonnegative. They must be the same size, or either can be scalar.
Compute the natural logarithm of the beta function according to the value of
X without directly computing the beta function.
beta(X,X) results in floating point arithmetic underflow.
X = 510; betaln(X,X)
ans = -708.8616