跳到主要内容

TDIST

Returns the Student's t-distribution.

Syntax

expression.TDIST(arg1, arg2, arg3);

expression - A variable that represents a ApiWorksheetFunction class.

Parameters

NameRequired/OptionalData typeDefaultDescription
arg1RequiredApiRange | ApiName | numberThe numeric value at which to evaluate the distribution.
arg2RequiredApiRange | ApiName | numberAn integer indicating the number of degrees of freedom that characterize the distribution.
arg3RequiredApiRange | ApiName | numberSpecifies the number of distribution tails to return: one-tailed distribution = 1; two-tailed distribution = 2.

Returns

number

Example

let worksheet = Api.GetActiveSheet();
let func = Api.GetWorksheetFunction();
let ans = func.TDIST(1.5, 10, 1);
worksheet.GetRange("B2").SetValue(ans);