GAMMA_INV
function GAMMA_INV(arg1: number = null, arg2: number = null, arg3: number = null): number
Description
Returns the inverse of the gamma cumulative distribution: if p = GAMMA.DIST(x,...), then GAMMA.INV(p,...) = x.
Parameters
- arg1
number
null The probability associated with the gamma distribution, a number between 0 and 1, inclusive.
- arg2
number
null The alpha parameter of the distribution, a positive number.
- arg3
number
null The beta parameter of the distribution, a positive number. If this parameter is equal to 1, the function returns the standard gamma distribution.
Returns
number
Try It
var oWorksheet = Api.GetActiveSheet();
var oFunction = Api.GetWorksheetFunction();
var ans = oFunction.GAMMA_INV(0.4, 9, 2);
oWorksheet.GetRange("B2").SetValue(ans);