Skip to main content

erf

Function erf 

Source
pub fn erf(x: f64) -> f64
Expand description

Error function: erf(x) = 2/sqrt(pi) * integral_0^x exp(-t^2) dt.

Odd (erf(-x) == -erf(x)) and bounded in [-1, 1]. erf(NAN) is NAN; erf(+-INFINITY) is +-1.0 exactly.