Skip to main content

erfcinv

Function erfcinv 

Source
pub fn erfcinv<T>(x: T) -> T
where T: Real + Error,
Expand description

Inverse complementary error function

\operatorname{erfc}^{-1}(1-z) = \operatorname{erf}^{-1}(z)

§Arguments

0 <= x <= 2.0

§Panics

if x < 0.0 or x > 2.0

§Example

use mathru::special::error;

let x: f64 = 1.0;
let error: f64 = error::erfcinv(x);