Skip to main content

erfinv

Function erfinv 

Source
pub fn erfinv(y: f64) -> f64
Expand description

Inverse of the error function $\erf(x)$

In the complex domain, there is no unique complex number $w$ satisfying $\erf(w) = z$. This indicates a true inverse function would be multivalued. When the domain restricts to the real, $-1 < x < 1$, there is a unique real number satisfying $\erf(\erf^{-1}(x)) = x$.

Note that unlike scipy.special.erfinv, which uses the Boost implementation, this function uses the Cephes implementation, which can be less accurate in certain regions.

ยงSee also

  • erfcinv: Inverse of the complementary error function
  • erf: Error function
  • erfc: Complementary error function