IMSL C# Numerical Library

Sfun.Beta Method 

Returns the value of the Beta function.

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

Parameters

a
A double value.
b
A double value.

Return Value

A double value specifying the Beta function.

Remarks

The Beta function is defined to be

\beta (a,b) = {{\Gamma (a)\Gamma (b)} \over 
            {\Gamma (a + b)}} = \int_0^1 {t^{a - 1} } (1 - t)^{b - 1} dt

See Gamma for the definition of \Gamma 
            \left( x \right).

The method Beta requires that both arguments be positive.

See Also

Sfun Class | Imsl.Math Namespace | Example