math.erfc() function

The math.erfc() function returns the complementary error function of x.

*Output data type: Float*

  1. import "math"
  2. math.erfc(x: 22.6)
  3. // Returns 3.7726189138490583e-224

Parameters

x

The value used in the operation.

*Data type: Float*

Special cases

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