LnBeta Function
Returns the Natural Logarithm of Beta(X,Y) using a LnGamma (X) as defined above.

Unit
QESBPCSMath

Declaration
Function LnBeta(const X, Y: Extended): Extended;

Description
X and Y must be positive.

Accuracy: Gives about 15 digits.

Parameters
First Value to process.
Second Value to process.

Category
Arithmetic Routines for Floats

Implementation

function LnBeta (const X, Y: Extended): Extended;
begin
     if not FloatIsPositive (X) or not FloatIsPositive (Y) then
          raise EMathError.Create (rsNotDefinedForValue);

     Result := LnGamma (X) + LnGamma (Y) - LnGamma (X + Y);
End;


HTML generated by Time2HELP
http://www.time2help.com