Skip to main content

is_effectively_zero

Function is_effectively_zero 

Source
pub fn is_effectively_zero(value: f64, scale: f64) -> bool
Expand description

Whether a value is zero relative to scale, the magnitude of its operands.

Two cancelling 5 kn vectors leave a residue well above f64::EPSILON that still means “stationary”; the same residue from 5000 kn vectors is noise of another order. No fixed constant handles both.