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 .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 (falls back to bisection whenever a step would leave the bracket) against the forward function
GammaRegularized(a, z), whose own accuracy was checked directly againstwolframscriptto 20 digits. N(x, d)past a double's digits polishes the double answer with Newton's method on the bignum series for , for real and .
Examples
2 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 | 16 |
|---|---|
| Checked against | Wolfram Language 13 agree2 differ1 unevaluated |
| Crosswalk | Wolfram Language |
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.
See also: GammaRegularized, Gamma, InverseBetaRegularized