Skip to main content

gammaincc

Function gammaincc 

Source
pub fn gammaincc(a: f64, x: f64) -> f64
Expand description

Regularized upper incomplete gamma function $Q(a,x)$

It is defined as 1:

$$ Q(a,x) = {1 \over \Gamma(a)} \int_x^\infty t^{a-1} e^{-t} \dd t = 1 - P(a,x) , $$

for $a > 0$ and $x \ge 0$, with $P(a,x)$ the regularized lower incomplete gamma function.

§Notes

Unlike scipy.special.gammaincc, this wraps the gammaincc Cephes routine 2 rather than the Boost gamma_q routine 3.

§See also

  • gammainc: Regularized lower incomplete gamma function, $P(a,x)$
  • gammaincinv: Inverse of the regularized lower incomplete gamma function
  • gammainccinv: Inverse of the regularized upper incomplete gamma function
  • gamma: Gamma function $\Gamma(z)$
  • scipy.special.gammaincc: Corresponding function in SciPy

  1. NIST Digital Library of Mathematical Functions, https://dlmf.nist.gov/8.2.E4. ↩

  2. Cephes Math Library Release 2.0. ↩

  3. The Boost Developers. “Boost C++ Libraries”, https://www.boost.org. ↩