[][src]Function mathru::special::error::erf

pub fn erf<T>(x: T) -> T where
    T: Real + Error + Gamma

Error Function

\operatorname{erf}(z) = \frac{2}{\sqrt\pi}\int_0^z e^{-t^2}\,dt.

For more information

Example

use mathru::special::error;

let x: f64 = 0.0;
let error: f64 = error::erf(x);