pub fn approximately(x: f64, target: f64, tol: f64) -> f64
“≈ target” with tolerance tol: a symmetric triangle peaking at target, reaching 0 at target ± tol. tol <= 0 is a crisp equality.
target
tol
0
target ± tol
tol <= 0