rgsl/
util.rs

1//
2// A rust binding for the GSL library by Guillaume Gomez (guillaume1.gomez@gmail.com)
3//
4
5pub fn subinterval_too_small(a1: f64, a2: f64, b2: f64) -> bool {
6    let e = ::DBL_EPSILON;
7    let u = ::DBL_MIN;
8
9    let tmp = (1f64 + 100f64 * e) * (a2.abs() + 1000f64 * u);
10
11    a1.abs() <= tmp && b2.abs() <= tmp
12}