#![allow(non_upper_case_globals)]
#![allow(non_camel_case_types)]
#![allow(non_snake_case)]
#![allow(dead_code)]
include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
#[must_use]
pub fn erf(x: f64) -> f64 {
unsafe { Faddeeva_erf_re(x) }
}
pub fn erfc<T>(x: T) -> T
where
f64: std::convert::From<T>,
T: std::convert::From<f64>,
{
let x = f64::from(x);
let y = unsafe { Faddeeva_erfc_re(x) };
y.into()
}
pub fn erfcx<T>(x: T) -> T
where
f64: std::convert::From<T>,
T: std::convert::From<f64>,
{
let x = f64::from(x);
let y = unsafe { Faddeeva_erfcx_re(x) };
y.into()
}