pub fn safe_recip(x: f64, eps: f64) -> f64
Safe reciprocal: returns 1/x when |x| > eps, else 0.
1/x
|x| > eps
0