erf()

This article describes erf() function.

Returns the error function of the input.

Syntax

erf(x)

Parameters

NameTypeRequiredDescription
xreal✔️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)
xerf_x
-3-0.999977909503001
-2-0.995322265018953
-1-0.842700792949715
00
10.842700792949715
20.995322265018953
30.999977909503001