pub fn gammaincinv(a: f64, p: f64) -> f64Expand description
The x ≥ 0 with P(a, x) = p (SciPy’s gammaincinv). The start is the Wilson-Hilferty
approximation for a > 1 and the small-x series for a ≤ 1; then Halley steps
x ← x − u / (1 − ½ u ((a−1)/x − 1)) with u = (P − p)/P' and P' = x^{a−1} e^{−x} / Γ(a).