TRY NEW VERSION

TINV

TINV(arg1, arg2) → { number }

Returns the two-tailed inverse of the Student's t-distribution.

Parameters:

Name Type Description
arg1 number

The probability associated with the two-tailed Student's t-distribution, a number between 0 and 1 inclusive.

arg2 number

A positive integer indicating the number of degrees of freedom to characterize the distribution.

Returns:

Type
number

Example

Copy code
builder.CreateFile("xlsx");

var oWorksheet = Api.GetActiveSheet();
var oFunction = Api.GetWorksheetFunction();
var result = oFunction.TINV(0.5, 10);
oWorksheet.GetRange("B2").SetValue(result);

builder.SaveFile("xlsx", "TINV.xlsx");
builder.CloseFile();

Resulting document