pub fn assert_relative(left: f64, right: f64, delta: f64)
Expand description

Asserts that the quotient of the difference between the two floats over the largest (by magnitude) of the two floats, taken as an absolute value, is within the supplied delta threshold.

Panics

If the quotient (gamma) exceeds delta.