ERF
Returns the error function integrated between the specified lower and upper limits.
Syntax
expression.ERF(arg1, arg2);
expression
- A variable that represents a ApiWorksheetFunction class.
Parameters
Name | Required/Optional | Data type | Default | Description |
---|---|---|---|---|
arg1 | Required | ApiRange | ApiName | number | The lower bound for integrating the error function. | |
arg2 | Optional | ApiRange | ApiName | number | The upper bound for integrating the error function. |
Returns
number
Example
This example shows how to return the error function integrated between the specified lower and upper limits.
- Code
- Result
// How to get an error function.
// Use function to get an error function set between upper and lower limits.
let worksheet = Api.GetActiveSheet();
let func = Api.GetWorksheetFunction();
worksheet.GetRange("A1").SetValue(func.ERF(-2));