BINOM_INV
Returns the smallest value for which the cumulative binomial distribution is greater than or equal to a criterion value.
Syntax
expression.BINOM_INV(arg1, arg2, arg3);
expression
- A variable that represents a ApiWorksheetFunction class.
Parameters
Name | Required/Optional | Data type | Default | Description |
---|---|---|---|---|
arg1 | Required | ApiRange | ApiName | number | The number of Bernoulli trials. | |
arg2 | Required | ApiRange | ApiName | number | The probability of success on each trial, a number between 0 and 1 inclusive. | |
arg3 | Required | ApiRange | ApiName | number | The criterion value, a number between 0 and 1 inclusive. |
Returns
number
Example
- Code
- Result
let worksheet = Api.GetActiveSheet();
let func = Api.GetWorksheetFunction();
let ans = func.BINOM_INV(678, 0.1, 0.007);
worksheet.GetRange("B2").SetValue(ans);