跳到主要内容

GAMMALN

Returns the natural logarithm of the gamma function.

Syntax

expression.GAMMALN(arg1);

expression - A variable that represents a ApiWorksheetFunction class.

Parameters

NameRequired/OptionalData typeDefaultDescription
arg1RequiredApiRange | ApiName | numberThe value for which the natural logarithm of the gamma function will be calculated, a positive number.

Returns

number

Example

let worksheet = Api.GetActiveSheet();
let func = Api.GetWorksheetFunction();
let ans = func.GAMMALN(0.5);
worksheet.GetRange("B2").SetValue(ans);