Function kn_graph::graph::erf

source ·
pub fn erf(x: f32) -> f32
Expand description

Formula and coefficients from https://en.wikipedia.org/wiki/Error_function#Numerical_approximations (Abramowitz and Stegun), Max error 3e-7. We use f64 internally to ensure there are no additional errors introduced.