GammaRegularized
The regularized upper incomplete gamma function , the survival function of the Gamma(a, 1) distribution.
✓ checked against that system · ! checked, with disagreements (hover a chip)Wolfram Language
GammaRegularized!GammaRegularized(a, z)the regularized upper incomplete gamma .Julia
enumeratio_ball(gamma_regularized, a, z)Rustgamma_regularized(a, z)GammaRegularized(a, z0, z1)the regularized difference ; at the LOWER regularized .Julia
enumeratio_ball((a, z0, z1) -> gamma_regularized(a, z0) - gamma_regularized(a, z1), a, z0, z1)Typed signatures
| Type | Package | Applies |
|---|---|---|
(complex | infinity, complex | infinity) -> number | compute-engine | always |
(complex | infinity, complex | infinity, (complex | infinity)?) -> number | analyticreplaces compute-engine | always |
Details
- Complementary to the lower regularized , which is the three-argument (
@enumeratio/analytic) -- the Gamma-distribution CDF, and with , the CDF. - for any : all the mass sits to the right of 0.
- For a positive integer n it has a closed polynomial form, , which compute-engine uses to evaluate exactly, even for negative z.
- Gives the Poisson CDF tail and the Gamma-distribution survival function, so it shows up throughout reliability and queueing models. See Gamma.
- The three-argument form divides the difference by rather than subtracting two values, so holds for negative too, where and are separately infinite but their ratio is 1. That is Wolfram's convention.
- A genuinely complex or , which the built-in handler declines, is evaluated as (
@enumeratio/analytic) -- Gamma itself takes complex arguments. So is a non-integer real with , whose value is complex (principal branch, ): . Computed in doubles from with a positive series for ; it stays unevaluated past what doubles hold, and where would lose digits to cancellation (an order near an even integer or near 0).
Plot
the complex plot cannot lower GammaRegularized
Examples
8 more kept as data, checked against the oraclesBasic #
Three arguments: , the Gamma(5/2, 1) distribution's CDF at
live ↗InOut
Known value · mpmath 1.3.0 gammainc
The polynomial closed form for an integer order extends validly to negative too, following the analytic continuation
live ↗InOut
even for negative , where and are each infinite but their ratio is 1
live ↗InOut
Known value · Wolfram 15.0.0 GammaRegularized
A non-integer order combined with negative z is complex, on the principal branch of the logarithm
live ↗InOut
About
| Examples | 34 |
|---|---|
| Checked against | Wolfram Language 31 agree3 differSageMath 19 agree1 unevaluated1 errorSymPy 19 agree1 differ2 unevaluatedJulia 25 agree3 errorRust 8 agree5 error |
| Crosswalk | Wolfram LanguageJulia ×2Rust |
Implementation
mapped
sympypackages/oracle/src/mappings.tsSymPy has no regularized incomplete gamma; it is written out as its definition, Gamma(a, z) / Gamma(a).
mapped
sagepackages/oracle/src/mappings.tsmapped
juliapackages/oracle/src/mappings.tsmapped
juliapackages/oracle/src/mappings.tsmapped
rustpackages/oracle/src/mappings.tsa, z > 0 only.
See also: Gamma, BetaRegularized