InverseGammaRegularized
The inverse of the regularized incomplete gamma in : solves . Solved numerically by a safeguarded Newton's method against compute-engine's own GammaRegularized, using the Gamma density (in log space) as the derivative.
InverseGammaRegularized!InverseGammaRegularized(a, s)solves for .enumeratio_inverse_gamma_regularized(a, s)Typed signatures
| Type | Package | Applies |
|---|---|---|
(number, number) -> number | analytic | always |
Details
- and hold for any , even a symbolic one, so
InverseGammaRegularized(a, 1) = 0andInverseGammaRegularized(a, 0) = \inftyare exact regardless. - inverts exactly to , symbolic included.
- Otherwise: a safeguarded Newton's method in (falls back to bisection whenever a step would leave the bracket) against the forward function —
GammaRegularized(a, z), or the continued fraction for where , which keeps its digits in the far tail — whose own accuracy was checked directly againstwolframscriptto 20 digits. A root the double solve cannot vouch for is left unevaluated. N(x, d)past a double's digits polishes the double answer with Newton's method on the bignum series for , for real and .
Plot
Examples
6 more kept as data, checked against the oraclesBasic #
The median of the Gamma(2, 1) distribution
live ↗Known value · Wolfram 15.0.0 InverseGammaRegularized
Properties #
At , , so the value 0 gives
live ↗Known value · Wolfram MathematicalFunctionData, InverseGammaRegularized
Probability 1 gives at
live ↗Known value · Wolfram MathematicalFunctionData, InverseGammaRegularized
Probability 1 gives at
live ↗Known value · Wolfram MathematicalFunctionData, InverseGammaRegularized
About
| Examples | 20 |
|---|---|
| Checked against | Wolfram Language 13 agree2 differ1 unevaluatedmpmath 6 agree |
| Crosswalk | Wolfram Languagempmath |
Implementation
primitive · kernela kernel — an algorithm over mutable state that would not be readable as a tree
typescriptpackages/symbols/analysis/analytic/src/inverse-regularized.tsSafeguarded Newton/bisection against native GammaRegularized.
mpmathpackages/oracle/src/mappings.tssympypackages/oracle/src/mappings.tsSymPy has no inverse of the regularized incomplete gamma (no gammaincinv); lowergamma, uppergamma and gammainc exist but nothing solves for the argument.
See also: GammaRegularized, Gamma, InverseBetaRegularized