Skip to main content

beta

Function beta 

Source
pub fn beta(a: f64, b: f64) -> f64
Expand description

The beta function B(a, b) = Γ(a)Γ(b)/Γ(a+b).

For positive arguments the result is accurate across the whole range (it switches to logarithms to avoid overflow). For other real arguments the gamma ratio is used directly.