Skip to main content

EXPONDIST

Returns the exponential distribution.

Syntax​

expression.EXPONDIST(arg1, arg2, arg3);

expression - A variable that represents an ApiWorksheetFunction class.

Parameters​

NameRequired/OptionalData typeDefaultDescription
arg1RequiredApiRange | ApiName | numberThe value of the x function, a nonnegative number.
arg2RequiredApiRange | ApiName | numberThe lambda parameter value, a positive number.
arg3RequiredApiRange | ApiName | booleanA logical value that determines the function form. If this parameter is true, the function will return the cumulative distribution function, if it is false, it will return the probability density function.

Returns​

number

Example​

Return the exponential distribution using the EXPONDIST compatibility function in a spreadsheet.

// Calculate exponential distribution values.

// Apply EXPONDIST function to get the exponential distribution in a spreadsheet.

let worksheet = Api.GetActiveSheet();
let func = Api.WorksheetFunction;
let ans = func.EXPONDIST(0.5, 3, false);
worksheet.GetRange("B2").SetValue(ans);