LOGNORM_INV
Returns the inverse of the lognormal cumulative distribution function of x, where ln(x) is normally distributed with the specified parameters.
Syntax
expression.LOGNORM_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 | A probability associated with the lognormal distribution, a number between 0 and 1, inclusive. | |
| arg2 | Required | ApiRange | ApiName | number | The mean of ln(x). | |
| arg3 | Required | ApiRange | ApiName | number | The standard deviation of ln(x), a positive number. |
Returns
number
Example
This example shows how to return the inverse of the lognormal cumulative distribution function of x, where ln(x) is normally distributed with the specified parameters.
- Code
- Result
// How to get the inverse of the lognormal cumulative distribution function of x.
// Use a function to return the inverse of the lognormal cumulative distribution function.
let worksheet = Api.GetActiveSheet();
let func = Api.GetWorksheetFunction();
worksheet.GetRange("A1").SetValue(func.LOGNORM_INV(0.3, 2, 0.2));