math.erfinv() function

Warning! This page documents an earlier version of Flux, which is no longer actively developed. Flux v0.50 is the most recent stable version of Flux.

The math.erfinv() function returns the inverse error function of x.

Output data type: Float

import "math"

math.erfinv(x: 0.22)

// Returns 0.19750838337227364

Parameters

x

The value used in the operation. x should be greater than -1 and less than 1. Otherwise, the operation will return NaN.

Data type: Float

Special cases

math.erfinv(x: 1)   // Returns +Inf
math.erfinv(x: -1)  // Returns -Inf
math.erfinv(x: <-1) // Returns NaN
math.erfinv(x: > 1) // Returns NaN
math.erfinv(x: NaN) // Returns NaN