pub fn checked_beta(a: f64, b: f64) -> Result<f64>
Computes the beta function where a is the first beta parameter and b is the second beta parameter.
a
b
if a <= 0.0 or b <= 0.0
a <= 0.0
b <= 0.0