Trait ErfFloat

Source
pub trait ErfFloat:
    Float
    + ApproxInto<usize, RoundToZero>
    + Float {
    const SQRT_2_ERFINV_UNITY_MINUS_EPS: Self;
    const SQRT_2_MAX_X_FOR_ERF_EPS_1OVER1E3: Self;
    const X_FOR_ERF_EPS_1OVER1E3: [Self; 64];
    const INVERSED_DX_FOR_ERF_EPS_1OVER1E3: Self;
    const Y_FOR_ERF_EPS_1OVER1E3: [Self; 64];

    // Required method
    fn libm_erf(self) -> Self;

    // Provided method
    fn erf_eps_1over1e3(self) -> Self { ... }
}
Expand description

Float trait for ErrorFunction, implemented for f32 and f64 only

Required Associated Constants§

Required Methods§

Source

fn libm_erf(self) -> Self

Provided Methods§

Source

fn erf_eps_1over1e3(self) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl ErfFloat for f32

Source§

const SQRT_2_ERFINV_UNITY_MINUS_EPS: Self = 5.29470396f32

Source§

const SQRT_2_MAX_X_FOR_ERF_EPS_1OVER1E3: Self = 3.38978362f32

Source§

const X_FOR_ERF_EPS_1OVER1E3: [Self; 64]

Source§

const INVERSED_DX_FOR_ERF_EPS_1OVER1E3: Self = 13.1417618f32

Source§

const Y_FOR_ERF_EPS_1OVER1E3: [Self; 64]

Source§

fn libm_erf(self) -> Self

Source§

impl ErfFloat for f64

Source§

const SQRT_2_ERFINV_UNITY_MINUS_EPS: Self = 8.2095361516013892f64

Source§

const SQRT_2_MAX_X_FOR_ERF_EPS_1OVER1E3: Self = 3.3897835712703261f64

Source§

const X_FOR_ERF_EPS_1OVER1E3: [Self; 64]

Source§

const INVERSED_DX_FOR_ERF_EPS_1OVER1E3: Self = 13.141761468984605f64

Source§

const Y_FOR_ERF_EPS_1OVER1E3: [Self; 64]

Source§

fn libm_erf(self) -> Self

Implementors§