跳到主要内容

ERFC

Returns the complementary error function integrated between the specified lower limit and infinity.

Syntax

expression.ERFC(arg1);

expression - A variable that represents a ApiWorksheetFunction class.

Parameters

NameRequired/OptionalData typeDefaultDescription
arg1RequiredApiRange | ApiName | numberThe lower bound for integrating the complementary error function.

Returns

number

Example

This example shows how to return the complementary error function integrated between the specified lower limit and infinity.

// How to get the complementary error function (from lower limit and infinity).

// Use function to get a complementary error function set between the specified lower limit and infinity.

let worksheet = Api.GetActiveSheet();
let func = Api.GetWorksheetFunction();
worksheet.GetRange("A1").SetValue(func.ERFC(-2));