Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Applies to: ✅ Microsoft Fabric ✅ Azure Data Explorer ✅ Azure Monitor ✅ Microsoft Sentinel
Returns the error function of the input.
Syntax
erf(x)
Learn more about syntax conventions.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| x | real |
✔️ | The value for which to calculate the function. |
Returns
Returns the error function of x.
Examples
The following example shows how to use the erf() function to calculate the error function for a range of values from -3 to 3.
range x from -3 to 3 step 1
| extend erf_x = erf(x)
| x | erf_x |
|---|---|
| -3 | -0.999977909503001 |
| -2 | -0.995322265018953 |
| -1 | -0.842700792949715 |
| 0 | 0 |
| 1 | 0.842700792949715 |
| 2 | 0.995322265018953 |
| 3 | 0.999977909503001 |