fn betacf(a: f64, b: f64, x: f64) -> f64
Continued fraction for the incomplete beta function (Numerical Recipes, 3rd ed).
Evaluates the CF representation of I_x(a,b) using the modified Lentz method.