Skip to main content

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

Return the complementary error function integrated between the specified lower limit and infinity in a spreadsheet.

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

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

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