TRY NEW VERSION

Try now New API BETA

Try out the new view and capabilities of the API documentation

START

BINOM_INV

BINOM_INV(arg1, arg2, arg3) → { number }

Returns the smallest value for which the cumulative binomial distribution is greater than or equal to a criterion value.

Parameters:

Name Type Description
arg1 number

The number of Bernoulli trials.

arg2 number

The probability of success on each trial, a number between 0 and 1 inclusive.

arg3 number

The criterion value, a number between 0 and 1 inclusive.

Returns:

Type
number

Example

Copy code
builder.CreateFile("xlsx");
var oWorksheet = Api.GetActiveSheet();
var oFunction = Api.GetWorksheetFunction();
var ans = oFunction.BINOM_INV(678, 0.1, 0.007);
oWorksheet.GetRange("B2").SetValue(ans);
builder.SaveFile("xlsx", "BINOM_INV.xlsx");
builder.CloseFile();

Resulting document