AdvancedMathLogBeta Method

Computes the logarithm of the Beta function.

Definition

Namespace: Meta.Numerics.Functions
Assembly: Meta.Numerics (in Meta.Numerics.dll) Version: 4.2.0+6d77d64445f7d5d91b12e331399c4362ecb25333
C#
public static double LogBeta(
	double x,
	double y
)

Parameters

x  Double
The first parameter, which must be positive.
y  Double
The second parameter, which must be positive.

Return Value

Double
The value of ln(B(x,y)).

Remarks

This function accurately computes ln(B(x,y)) even for values of x and y for which B(x,y) is too small or large to be represented by a double.

Exceptions

ArgumentOutOfRangeExceptionx or y is negative or zero.

See Also