Skip to main content

safe_recip

Function safe_recip 

Source
pub fn safe_recip(x: f64, eps: f64) -> f64
Expand description

Safe reciprocal: returns 1/x when |x| > eps, else 0.