[][src]Trait mathru::special::error::Error

pub trait Error {
    pub fn erf(self) -> Self;
pub fn erfc(self) -> Self;
pub fn erfinv(self) -> Self;
pub fn erfcinv(self) -> Self; }

Required methods

pub fn erf(self) -> Self[src]

Error function

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

For more information

Arguments

self:

pub fn erfc(self) -> Self[src]

Complementary error function

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

Arguments

self

pub fn erfinv(self) -> Self[src]

Inverse error function

\operatorname{erfinv}(x) = \operatorname{erf}^{-1}(x) \quad \text{for} \quad x \in (-1, 1)

For more information

Arguments

-1.0 < x < 1.0

Panics

if x < -1.0 or x > 1.0

pub fn erfcinv(self) -> Self[src]

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

Loading content...

Implementations on Foreign Types

impl Error for f64[src]

pub fn erfinv(self) -> Self[src]

https://en.wikipedia.org/wiki/Error_function#Inverse_functions. Using the rational approximants tabulated in: J. M. Blair, C. A. Edwards, and J. H. Johnson, "Rational Chebyshev approximations for the inverse of the error function",

impl Error for f32[src]

Loading content...

Implementors

Loading content...