LOGNORMDIST

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

Description

Returns the cumulative lognormal distribution of x, where ln(x) is normally distributed with the specified parameters.

Parameters

arg1numberdefault: null

The value at which to evaluate the function, a positive number.

arg2numberdefault: null

The mean of ln(x).

arg3numberdefault: null

The standard deviation of ln(x), a positive number.

Returns

number

Try It


const oWorksheet = Api.GetActiveSheet();

//configure function parameters
var numbersArr = [4, 7, 40];

//set values in cells
for (var i = 0; i < numbersArr.length; i++) {
 oWorksheet.GetRange("A" + (i + 1)).SetValue(numbersArr[i]);
}

//get parameters
var xValue = oWorksheet.GetRange("A1");
var mean = oWorksheet.GetRange("A2");
var standardDeviation = oWorksheet.GetRange("A3");

//invoke LOGNORMDIST method
var oFunction = Api.GetWorksheetFunction();
var ans = oFunction.LOGNORMDIST(xValue, mean, standardDeviation);

//print answer
oWorksheet.GetRange("C1").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).