IMSL C# Numerical Library

Sfun.LogBeta Method 

Returns the logarithm of the Beta function.

public static double LogBeta(
   double a,
   double b
);

Parameters

a
A double value.
b
A double value.

Return Value

A double value specifying the natural logarithm of the Beta function.

Remarks

Method LogBeta computes {\rm ln} \, \beta 
            \left( {a,b} \right) = {\rm ln} \, \beta \left( {b,a} \right). See Beta for the definition of \beta \left( {a,b} 
            \right).

LogBeta is defined for a \gt 0 and b \gt 0. It returns accurate results even when a or b is very small. It can overflow for very large arguments; this error condition is not detected except by the computer hardware.

See Also

Sfun Class | Imsl.Math Namespace | Example