math.erf() function

The math.erf() function returns the error function of x.

*Output data type: Float*

  1. import "math"
  2. math.erf(x: 22.6)
  3. // Returns 1.0

Parameters

x

The value used in the operation.

*Data type: Float*

Special cases

  1. math.erf(+Inf) // Returns 1
  2. math.erf(-Inf) // Returns -1
  3. math.erf(NaN) // Returns NaN