GAMMAINV

function GAMMAINV(arg1: number = null, arg2: number = null, arg3: number = null): number

Description

Returns the inverse of the gamma cumulative distribution: if p = GAMMADIST(x,...), then GAMMAINV(p,...) = x.

Parameters

arg1numberdefault: null

The probability associated with the gamma distribution, a number between 0 and 1, inclusive.

arg2numberdefault: null

The alpha parameter of the distribution, a positive number.

arg3numberdefault: 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.GAMMAINV(0.4, 9, 2);
oWorksheet.GetRange("B2").SetValue(ans);

Get Help

  • If you have any questions about ONLYOFFICE Docs, try the FAQ section first.
  • You can request a feature or report a bug by posting an issue on GitHub.
  • You can also ask our developers on ONLYOFFICE forum (registration required).